home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / HyperCard / HyperCard Home Folder / HyperCard Home < prev   
MacBinary  |  1994-06-20  |  199.8 KB  |  [STAK/WILD]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: HyperCard Home

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert HyperCard Stack (archive/hypercard) idMeta Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, busy, Sun Nov 7 19:32:25 1993, modified Mon Jun 20 14:51:45 1994, creator HyperCard, type HyperCard stack, 65536 bytes "HyperCard Home" , at 0x10080 138849 bytes resource default (weak)
99% file Atari 68xxx CPX file (version ffffffff) default
98% file data default
74% TrID Mac HyperCard stack (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[STAK]
macFileCreator[WILD]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 48 79 70 65 72 43 | 61 72 64 20 48 6f 6d 65 |..HyperC|ard Home|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 05 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 01 00 00 00 | 02 1e 61 a9 03 44 19 aa |........|..a..D..|
|00000060| 2b 95 c1 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |+.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 70 eb 00 00 |........|....p...|
|00000080| 00 00 64 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..d.STAK|........|
|00000090| 00 00 00 0a 00 01 00 00 | 00 00 64 00 00 00 00 00 |........|..d.....|
|000000a0| 00 00 00 00 00 00 00 01 | 00 00 0a 1c 00 00 00 02 |........|........|
|000000b0| 00 00 0b 54 00 00 08 a4 | 00 00 00 0a 00 00 61 60 |...T....|......a`|
|000000c0| 00 00 10 2a 6f 86 92 47 | 00 05 00 00 5c 00 00 00 |...*o..G|....\...|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 10 80 00 02 10 80 00 | 01 01 80 00 02 10 80 00 |........|........|
|000000f0| 22 53 31 b9 00 00 00 00 | 00 8d 00 a0 01 e3 02 a0 |"S1.....|........|
|00000100| 00 00 00 00 02 70 03 40 | 00 00 00 00 00 00 00 00 |.....p.@|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d bf 00 00 0c fc | 01 56 02 00 00 00 00 00 |........|.V......|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 66 00 00 00 05 20 | 00 00 6b a0 00 00 07 c0 |..f.... |..k.....|
|00000490| 00 00 7b 60 00 00 00 c0 | 00 00 7d 80 00 00 00 40 |..{`....|..}....@|
|000004a0| 00 00 7f 20 00 00 00 40 | 00 00 7f e0 00 00 0b 80 |... ...@|........|
|000004b0| 00 00 95 e0 00 00 08 80 | 00 00 9f e0 00 00 24 40 |........|......$@|
|000004c0| 00 00 ce 60 00 00 0b 20 | 00 00 f0 00 00 00 0f e0 |...`... |........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 6f 6e 20 73 74 61 72 74 | 55 70 0d 69 66 20 74 68 |on start|Up.if th|
|00000690| 65 72 65 20 69 73 20 61 | 20 62 75 74 74 6f 6e 20 |ere is a| button |
|000006a0| 22 49 6e 69 74 69 61 6c | 69 73 61 74 69 6f 6e 22 |"Initial|isation"|
|000006b0| 20 74 68 65 6e 0d 53 68 | 6f 77 20 63 64 20 62 75 | then.Sh|ow cd bu|
|000006c0| 74 74 6f 6e 20 22 49 6e | 69 74 69 61 6c 69 73 61 |tton "In|itialisa|
|000006d0| 74 69 6f 6e 22 0d 65 6e | 64 20 69 66 0d 53 65 74 |tion".en|d if.Set|
|000006e0| 20 63 75 72 73 6f 72 20 | 74 6f 20 77 61 74 63 68 | cursor |to watch|
|000006f0| 0d 73 65 74 20 75 73 65 | 72 6c 65 76 65 6c 20 74 |.set use|rlevel t|
|00000700| 6f 20 31 0d 70 61 73 73 | 20 73 74 61 72 74 55 70 |o 1.pass| startUp|
|00000710| 0d 65 6e 64 20 73 74 61 | 72 74 55 70 0d 0d 6f 6e |.end sta|rtUp..on|
|00000720| 20 51 75 69 6c 0d 70 6c | 61 79 20 4f 6c 61 0d 6c | Quil.pl|ay Ola.l|
|00000730| 6f 63 6b 20 73 63 72 65 | 65 6e 0d 63 6f 6c 6f 72 |ock scre|en.color|
|00000740| 69 7a 65 48 43 20 22 61 | 64 64 22 2c 22 57 69 6e |izeHC "a|dd","Win|
|00000750| 64 6f 77 4b 6e 6f 70 42 | 6c 61 75 77 22 2c 22 32 |dowKnopB|lauw","2|
|00000760| 2c 33 31 35 22 0d 75 6e | 6c 6f 63 6b 20 73 63 72 |,315".un|lock scr|
|00000770| 65 65 6e 0d 77 61 69 74 | 20 31 20 73 65 63 0d 73 |een.wait| 1 sec.s|
|00000780| 65 74 20 63 75 72 73 6f | 72 20 74 6f 20 77 61 74 |et curso|r to wat|
|00000790| 63 68 0d 64 6f 4d 65 6e | 75 20 22 51 75 69 74 20 |ch.doMen|u "Quit |
|000007a0| 48 79 70 65 72 43 61 72 | 64 22 0d 65 6e 64 20 51 |HyperCar|d".end Q|
|000007b0| 75 69 6c 0d 0d 6f 6e 20 | 63 48 43 69 6e 73 74 61 |uil..on |cHCinsta|
|000007c0| 6c 6c 20 64 65 70 74 68 | 0d 73 65 74 20 63 75 72 |ll depth|.set cur|
|000007d0| 73 6f 72 20 74 6f 20 62 | 75 73 79 0d 0d 69 66 20 |sor to b|usy..if |
|000007e0| 63 68 65 63 6b 45 6e 76 | 69 72 6f 6e 28 64 65 70 |checkEnv|iron(dep|
|000007f0| 74 68 29 20 69 73 20 6e | 6f 74 20 22 4f 4b 22 20 |th) is n|ot "OK" |
|00000800| 74 68 65 6e 0d 67 6f 20 | 48 6f 6d 65 0d 67 65 74 |then.go |Home.get|
|00000810| 48 6f 6d 65 49 6e 66 6f | 0d 65 78 69 74 20 74 6f |HomeInfo|.exit to|
|00000820| 20 48 79 70 65 72 43 61 | 72 64 0d 65 6e 64 20 69 | HyperCa|rd.end i|
|00000830| 66 0d 65 6e 64 20 63 48 | 43 69 6e 73 74 61 6c 6c |f.end cH|Cinstall|
|00000840| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 63 68 65 63 6b |..functi|on check|
|00000850| 45 6e 76 69 72 6f 6e 20 | 54 68 65 44 65 70 74 68 |Environ |TheDepth|
|00000860| 0d 2d 2d 20 54 68 65 20 | 68 65 61 70 73 70 61 63 |.-- The |heapspac|
|00000870| 65 20 72 65 71 75 69 72 | 65 6d 65 6e 74 73 20 76 |e requir|ements v|
|00000880| 61 72 79 20 64 65 70 65 | 6e 64 69 6e 67 20 6f 6e |ary depe|nding on|
|00000890| 20 79 6f 75 72 20 73 74 | 61 63 6b 0d 70 75 74 20 | your st|ack.put |
|000008a0| 4d 61 78 44 65 70 74 68 | 28 29 20 69 6e 74 6f 20 |MaxDepth|() into |
|000008b0| 4d 78 44 65 70 74 68 0d | 69 66 20 54 68 65 44 65 |MxDepth.|if TheDe|
|000008c0| 70 74 68 20 69 73 20 65 | 6d 70 74 79 20 74 68 65 |pth is e|mpty the|
|000008d0| 6e 20 70 75 74 20 4d 78 | 44 65 70 74 68 20 69 6e |n put Mx|Depth in|
|000008e0| 74 6f 20 54 68 65 44 65 | 70 74 68 0d 65 6c 73 65 |to TheDe|pth.else|
|000008f0| 20 70 75 74 20 4d 69 6e | 20 28 4d 78 44 65 70 74 | put Min| (MxDept|
|00000900| 68 2c 54 68 65 44 65 70 | 74 68 29 20 69 6e 74 6f |h,TheDep|th) into|
|00000910| 20 54 68 65 44 65 70 74 | 68 0d 70 75 74 20 74 68 | TheDept|h.put th|
|00000920| 65 20 68 65 61 70 53 70 | 61 63 65 20 69 6e 74 6f |e heapSp|ace into|
|00000930| 20 54 68 65 48 65 61 70 | 53 70 61 63 65 0d 70 75 | TheHeap|Space.pu|
|00000940| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 6f 6e 63 |t empty |into onc|
|00000950| 65 0d 72 65 70 65 61 74 | 20 77 68 69 6c 65 20 54 |e.repeat| while T|
|00000960| 68 65 44 65 70 74 68 20 | b3 20 34 20 6f 72 20 6f |heDepth |. 4 or o|
|00000970| 6e 63 65 20 69 73 20 65 | 6d 70 74 79 0d 70 75 74 |nce is e|mpty.put|
|00000980| 20 32 2a 54 68 65 44 65 | 70 74 68 2a 28 77 69 64 | 2*TheDe|pth*(wid|
|00000990| 74 68 20 6f 66 20 74 68 | 69 73 20 63 64 20 2a 20 |th of th|is cd * |
|000009a0| 68 65 69 67 68 74 20 6f | 66 20 74 68 69 73 20 63 |height o|f this c|
|000009b0| 64 29 20 44 49 56 20 38 | c2 0d 2b 20 33 35 30 30 |d) DIV 8|..+ 3500|
|000009c0| 30 20 69 6e 74 6f 20 52 | 65 71 53 69 7a 65 0d 69 |0 into R|eqSize.i|
|000009d0| 66 20 54 68 65 48 65 61 | 70 53 70 61 63 65 20 3c |f TheHea|pSpace <|
|000009e0| 20 52 65 71 53 69 7a 65 | 20 74 68 65 6e 0d 69 66 | ReqSize| then.if|
|000009f0| 20 6f 6e 63 65 20 69 73 | 20 65 6d 70 74 79 20 74 | once is| empty t|
|00000a00| 68 65 6e 0d 65 72 72 4d | 65 6d 6f 72 79 20 54 68 |hen.errM|emory Th|
|00000a10| 65 44 65 70 74 68 2c 52 | 65 71 53 69 7a 65 0d 65 |eDepth,R|eqSize.e|
|00000a20| 6e 64 20 69 66 0d 65 6c | 73 65 0d 69 66 20 6f 6e |nd if.el|se.if on|
|00000a30| 63 65 20 69 73 20 6e 6f | 74 20 65 6d 70 74 79 0d |ce is no|t empty.|
|00000a40| 74 68 65 6e 20 69 66 20 | 6e 6f 74 20 77 61 72 6e |then if |not warn|
|00000a50| 44 65 70 74 68 28 54 68 | 65 44 65 70 74 68 29 20 |Depth(Th|eDepth) |
|00000a60| 74 68 65 6e 20 72 65 74 | 75 72 6e 20 65 6d 70 74 |then ret|urn empt|
|00000a70| 79 0d 69 66 20 54 68 65 | 44 65 70 74 68 20 3c 20 |y.if The|Depth < |
|00000a80| 34 20 74 68 65 6e 20 65 | 72 72 42 69 74 44 65 70 |4 then e|rrBitDep|
|00000a90| 74 68 0d 69 66 20 54 68 | 65 48 65 61 70 53 70 61 |th.if Th|eHeapSpa|
|00000aa0| 63 65 20 3c 20 52 65 71 | 53 69 7a 65 2b 39 32 31 |ce < Req|Size+921|
|00000ab0| 36 30 20 2d 2d 20 63 68 | 65 63 6b 20 66 6f 72 20 |60 -- ch|eck for |
|00000ac0| 39 30 4b 20 65 78 74 72 | 61 0d 74 68 65 6e 20 65 |90K extr|a.then e|
|00000ad0| 72 72 4d 65 6d 6f 72 79 | 20 54 68 65 44 65 70 74 |rrMemory| TheDept|
|00000ae0| 68 2c 52 65 71 53 69 7a | 65 2c 54 72 75 65 0d 69 |h,ReqSiz|e,True.i|
|00000af0| 66 20 73 74 61 63 6b 41 | 63 74 69 76 61 74 65 28 |f stackA|ctivate(|
|00000b00| 54 68 65 44 65 70 74 68 | 29 20 69 73 20 6e 6f 74 |TheDepth|) is not|
|00000b10| 20 65 6d 70 74 79 0d 74 | 68 65 6e 20 65 72 72 43 | empty.t|hen errC|
|00000b20| 6f 6c 6f 72 0d 72 65 74 | 75 72 6e 20 22 4f 4b 22 |olor.ret|urn "OK"|
|00000b30| 20 2d 2d 20 65 76 65 6e | 20 69 66 20 65 72 72 6f | -- even| if erro|
|00000b40| 72 0d 65 6e 64 20 69 66 | 0d 70 75 74 20 54 72 75 |r.end if|.put Tru|
|00000b50| 65 20 69 6e 74 6f 20 6f | 6e 63 65 0d 70 75 74 20 |e into o|nce.put |
|00000b60| 70 72 65 76 44 65 70 74 | 68 28 54 68 65 44 65 70 |prevDept|h(TheDep|
|00000b70| 74 68 29 20 69 6e 74 6f | 20 54 68 65 44 65 70 74 |th) into| TheDept|
|00000b80| 68 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 65 6e 64 |h.end re|peat.end|
|00000b90| 20 63 68 65 63 6b 45 6e | 76 69 72 6f 6e 0d 0d 66 | checkEn|viron..f|
|00000ba0| 75 6e 63 74 69 6f 6e 20 | 70 72 65 76 44 65 70 74 |unction |prevDept|
|00000bb0| 68 20 64 65 70 74 68 0d | 2d 2d 20 6b 6e 6f 77 6e |h depth.|-- known|
|00000bc0| 20 73 63 72 65 65 6e 20 | 64 65 70 74 68 73 0d 69 | screen |depths.i|
|00000bd0| 66 20 64 65 70 74 68 20 | 3e 20 32 34 20 74 68 65 |f depth |> 24 the|
|00000be0| 6e 20 72 65 74 75 72 6e | 20 32 34 0d 69 66 20 64 |n return| 24.if d|
|00000bf0| 65 70 74 68 20 3e 20 31 | 36 20 74 68 65 6e 20 72 |epth > 1|6 then r|
|00000c00| 65 74 75 72 6e 20 31 36 | 0d 69 66 20 64 65 70 74 |eturn 16|.if dept|
|00000c10| 68 20 3e 20 38 20 74 68 | 65 6e 20 72 65 74 75 72 |h > 8 th|en retur|
|00000c20| 6e 20 38 0d 69 66 20 64 | 65 70 74 68 20 3e 20 34 |n 8.if d|epth > 4|
|00000c30| 20 74 68 65 6e 20 72 65 | 74 75 72 6e 20 34 0d 72 | then re|turn 4.r|
|00000c40| 65 74 75 72 6e 20 31 0d | 65 6e 64 20 70 72 65 76 |eturn 1.|end prev|
|00000c50| 44 65 70 74 68 0d 0d 6f | 6e 20 65 72 72 4d 65 6d |Depth..o|n errMem|
|00000c60| 6f 72 79 20 54 68 65 44 | 65 70 74 68 2c 50 61 72 |ory TheD|epth,Par|
|00000c70| 74 69 74 69 6f 6e 53 69 | 7a 65 2c 53 6f 66 74 0d |titionSi|ze,Soft.|
|00000c80| 70 75 74 20 74 68 65 20 | 73 68 6f 72 74 20 6e 61 |put the |short na|
|00000c90| 6d 65 20 6f 66 20 48 79 | 70 65 72 43 61 72 64 20 |me of Hy|perCard |
|00000ca0| 69 6e 74 6f 20 54 68 65 | 48 79 70 65 72 43 61 72 |into The|HyperCar|
|00000cb0| 64 0d 69 66 20 73 6f 66 | 74 20 69 73 20 6e 6f 74 |d.if sof|t is not|
|00000cc0| 20 65 6d 70 74 79 20 74 | 68 65 6e 0d 61 6e 73 77 | empty t|hen.answ|
|00000cd0| 65 72 20 22 4d 65 6d 6f | 72 79 20 69 73 20 6c 6f |er "Memo|ry is lo|
|00000ce0| 77 2e 20 53 6f 6d 65 20 | 6f 70 65 72 61 74 69 6f |w. Some |operatio|
|00000cf0| 6e 73 20 6d 61 79 20 6e | 6f 74 20 77 6f 72 6b 2e |ns may n|ot work.|
|00000d00| 22 20 26 26 c2 0d 22 59 | 6f 75 20 73 68 6f 75 6c |" &&.."Y|ou shoul|
|00000d10| 64 20 69 6e 63 72 65 61 | 73 65 20 74 68 65 20 6d |d increa|se the m|
|00000d20| 65 6d 6f 72 79 20 73 69 | 7a 65 20 6f 66 22 20 26 |emory si|ze of" &|
|00000d30| 26 20 54 68 65 48 79 70 | 65 72 43 61 72 64 20 26 |& TheHyp|erCard &|
|00000d40| 26 c2 0d 22 62 79 20 61 | 74 20 6c 65 61 73 74 20 |&.."by a|t least |
|00000d50| 39 30 4b 2e 22 0d 65 6c | 73 65 0d 70 75 74 20 28 |90K.".el|se.put (|
|00000d60| 50 61 72 74 69 74 69 6f | 6e 53 69 7a 65 20 44 49 |Partitio|nSize DI|
|00000d70| 56 20 31 30 32 34 29 20 | 26 20 22 4b 22 20 69 6e |V 1024) |& "K" in|
|00000d80| 74 6f 20 50 61 72 74 69 | 74 69 6f 6e 53 69 7a 65 |to Parti|tionSize|
|00000d90| 0d 70 75 74 20 28 74 68 | 65 20 68 65 61 70 53 70 |.put (th|e heapSp|
|00000da0| 61 63 65 20 44 49 56 20 | 31 30 32 34 29 20 26 20 |ace DIV |1024) & |
|00000db0| 22 4b 22 20 69 6e 74 6f | 20 68 65 61 70 53 69 7a |"K" into| heapSiz|
|00000dc0| 65 0d 61 6e 73 77 65 72 | 20 50 61 72 74 69 74 69 |e.answer| Partiti|
|00000dd0| 6f 6e 53 69 7a 65 20 26 | 26 20 22 65 78 74 72 61 |onSize &|& "extra|
|00000de0| 20 6d 65 6d 6f 72 79 20 | 69 73 20 72 65 71 75 69 | memory |is requi|
|00000df0| 72 65 64 20 74 6f 20 72 | 75 6e 20 d2 22 20 26 c2 |red to r|un ." &.|
|00000e00| 0d 74 68 65 20 73 68 6f | 72 74 20 6e 61 6d 65 20 |.the sho|rt name |
|00000e10| 6f 66 20 74 68 69 73 20 | 73 74 61 63 6b 20 26 20 |of this |stack & |
|00000e20| 22 d3 20 69 6e 22 20 26 | 26 20 54 68 65 44 65 70 |". in" &|& TheDep|
|00000e30| 74 68 20 26 20 c2 0d 22 | 62 69 74 20 6d 6f 64 65 |th & .."|bit mode|
|00000e40| 2c 20 62 75 74 20 6f 6e | 6c 79 22 20 26 26 20 68 |, but on|ly" && h|
|00000e50| 65 61 70 53 69 7a 65 20 | 26 26 20 22 69 73 20 63 |eapSize |&& "is c|
|00000e60| 75 72 72 65 6e 74 6c 79 | 20 73 70 61 72 65 2e 22 |urrently| spare."|
|00000e70| 20 26 26 c2 0d 22 49 6e | 63 72 65 61 73 65 20 74 | &&.."In|crease t|
|00000e80| 68 65 20 6d 65 6d 6f 72 | 79 20 73 69 7a 65 20 6f |he memor|y size o|
|00000e90| 66 22 20 26 26 20 54 68 | 65 48 79 70 65 72 43 61 |f" && Th|eHyperCa|
|00000ea0| 72 64 20 26 20 22 2e 22 | 0d 65 6e 64 20 69 66 0d |rd & "."|.end if.|
|00000eb0| 65 6e 64 20 65 72 72 4d | 65 6d 6f 72 79 0d 0d 66 |end errM|emory..f|
|00000ec0| 75 6e 63 74 69 6f 6e 20 | 77 61 72 6e 44 65 70 74 |unction |warnDept|
|00000ed0| 68 20 64 65 70 74 68 0d | 61 6e 73 77 65 72 20 22 |h depth.|answer "|
|00000ee0| 44 6f 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 63 |Do you w|ant to c|
|00000ef0| 6f 6e 74 69 6e 75 65 20 | 69 6e 22 20 26 26 20 64 |ontinue |in" && d|
|00000f00| 65 70 74 68 20 26 20 22 | 62 69 74 20 6d 6f 64 65 |epth & "|bit mode|
|00000f10| 3f 22 c2 0d 77 69 74 68 | 20 22 4e 6f 22 20 6f 72 |?"..with| "No" or|
|00000f20| 20 22 59 65 73 22 0d 72 | 65 74 75 72 6e 20 69 74 | "Yes".r|eturn it|
|00000f30| 20 69 73 20 22 59 65 73 | 22 0d 65 6e 64 20 77 61 | is "Yes|".end wa|
|00000f40| 72 6e 44 65 70 74 68 0d | 0d 66 75 6e 63 74 69 6f |rnDepth.|.functio|
|00000f50| 6e 20 6c 61 73 74 49 74 | 65 6d 20 54 68 65 44 65 |n lastIt|em TheDe|
|00000f60| 6c 69 6d 69 74 65 72 2c | 53 74 72 69 6e 67 0d 2d |limiter,|String.-|
|00000f70| 2d 20 72 65 74 75 72 6e | 20 74 68 65 20 70 6f 72 |- return| the por|
|00000f80| 74 69 6f 6e 20 6f 66 20 | 3c 53 74 72 69 6e 67 3e |tion of |<String>|
|00000f90| 20 74 68 61 74 20 66 6f | 6c 6c 6f 77 73 20 74 68 | that fo|llows th|
|00000fa0| 65 20 4c 41 53 54 20 6f | 63 63 75 72 61 6e 63 65 |e LAST o|ccurance|
|00000fb0| 20 6f 66 20 3c 54 68 65 | 44 65 6c 69 6d 69 74 65 | of <The|Delimite|
|00000fc0| 72 3e 0d 69 66 20 54 68 | 65 44 65 6c 69 6d 69 74 |r>.if Th|eDelimit|
|00000fd0| 65 72 20 69 73 20 69 6e | 20 53 74 72 69 6e 67 0d |er is in| String.|
|00000fe0| 74 68 65 6e 20 70 75 74 | 20 6c 61 73 74 49 74 65 |then put| lastIte|
|00000ff0| 6d 28 54 68 65 44 65 6c | 69 6d 69 74 65 72 2c 63 |m(TheDel|imiter,c|
|00001000| 68 61 72 20 6f 66 66 73 | 65 74 28 54 68 65 44 65 |har offs|et(TheDe|
|00001010| 6c 69 6d 69 74 65 72 2c | 53 74 72 69 6e 67 29 20 |limiter,|String) |
|00001020| 2b 20 31 20 74 6f 20 6c | 65 6e 67 74 68 28 53 74 |+ 1 to l|ength(St|
|00001030| 72 69 6e 67 29 20 6f 66 | 20 53 74 72 69 6e 67 29 |ring) of| String)|
|00001040| 20 69 6e 74 6f 20 53 74 | 72 69 6e 67 0d 72 65 74 | into St|ring.ret|
|00001050| 75 72 6e 20 53 74 72 69 | 6e 67 0d 65 6e 64 20 6c |urn Stri|ng.end l|
|00001060| 61 73 74 49 74 65 6d 0d | 0d 6f 6e 20 65 72 72 42 |astItem.|.on errB|
|00001070| 69 74 44 65 70 74 68 0d | 61 6e 73 77 65 72 20 22 |itDepth.|answer "|
|00001080| 54 68 69 73 20 73 74 61 | 63 6b 20 72 65 71 75 69 |This sta|ck requi|
|00001090| 72 65 73 20 61 20 63 6f | 6c 6f 72 20 73 79 73 74 |res a co|lor syst|
|000010a0| 65 6d 20 73 65 74 20 74 | 6f 20 61 74 20 6c 65 61 |em set t|o at lea|
|000010b0| 73 74 20 31 36 20 63 6f | 6c 6f 72 73 22 20 26 26 |st 16 co|lors" &&|
|000010c0| 20 c2 0d 22 28 34 20 62 | 69 74 2d 64 65 70 74 68 | .."(4 b|it-depth|
|000010d0| 29 20 74 6f 20 64 69 73 | 70 6c 61 79 20 63 6f 6c |) to dis|play col|
|000010e0| 6f 72 2e 22 0d 65 6e 64 | 20 65 72 72 42 69 74 44 |or.".end| errBitD|
|000010f0| 65 70 74 68 0d 0d 6f 6e | 20 63 6f 6c 6f 72 69 7a |epth..on| coloriz|
|00001100| 65 48 43 0d 67 6c 6f 62 | 61 6c 20 67 4f 4b 54 6f |eHC.glob|al gOKTo|
|00001110| 43 6f 6c 6f 72 69 7a 65 | 2c 20 67 48 43 6f 70 74 |Colorize|, gHCopt|
|00001120| 69 6f 6e 73 0d 69 66 20 | 67 4f 4b 54 6f 43 6f 6c |ions.if |gOKToCol|
|00001130| 6f 72 69 7a 65 20 69 73 | 20 65 6d 70 74 79 20 61 |orize is| empty a|
|00001140| 6e 64 20 67 48 43 6f 70 | 74 69 6f 6e 73 20 69 73 |nd gHCop|tions is|
|00001150| 20 6e 6f 74 20 65 6d 70 | 74 79 0d 74 68 65 6e 20 | not emp|ty.then |
|00001160| 70 61 73 73 20 63 6f 6c | 6f 72 69 7a 65 48 43 0d |pass col|orizeHC.|
|00001170| 65 6e 64 20 63 6f 6c 6f | 72 69 7a 65 48 43 0d 0d |end colo|rizeHC..|
|00001180| 66 75 6e 63 74 69 6f 6e | 20 63 6f 6c 6f 72 50 69 |function| colorPi|
|00001190| 63 6b 65 72 20 70 72 6f | 6d 70 74 2c 6c 6f 63 2c |cker pro|mpt,loc,|
|000011a0| 64 65 66 61 75 6c 74 0d | 67 6c 6f 62 61 6c 20 67 |default.|global g|
|000011b0| 48 43 6f 70 74 69 6f 6e | 73 0d 67 6c 6f 62 61 6c |HCoption|s.global|
|000011c0| 20 67 4f 4b 54 6f 43 6f | 6c 6f 72 69 7a 65 0d 69 | gOKToCo|lorize.i|
|000011d0| 66 20 67 4f 4b 54 6f 43 | 6f 6c 6f 72 69 7a 65 20 |f gOKToC|olorize |
|000011e0| 69 73 20 65 6d 70 74 79 | 20 61 6e 64 20 63 68 61 |is empty| and cha|
|000011f0| 72 20 38 20 6f 66 20 67 | 48 43 6f 70 74 69 6f 6e |r 8 of g|HCoption|
|00001200| 73 20 ad 20 31 0d 74 68 | 65 6e 20 70 61 73 73 20 |s . 1.th|en pass |
|00001210| 63 6f 6c 6f 72 50 69 63 | 6b 65 72 0d 72 65 74 75 |colorPic|ker.retu|
|00001220| 72 6e 20 65 6d 70 74 79 | 0d 65 6e 64 20 63 6f 6c |rn empty|.end col|
|00001230| 6f 72 50 69 63 6b 65 72 | 0d 0d 66 75 6e 63 74 69 |orPicker|..functi|
|00001240| 6f 6e 20 73 74 61 63 6b | 41 63 74 69 76 61 74 65 |on stack|Activate|
|00001250| 20 64 65 70 74 68 0d 67 | 6c 6f 62 61 6c 20 67 4f | depth.g|lobal gO|
|00001260| 4b 54 6f 43 6f 6c 6f 72 | 69 7a 65 2c 20 67 48 43 |KToColor|ize, gHC|
|00001270| 64 65 70 74 68 0d 0d 70 | 75 74 20 65 6d 70 74 79 |depth..p|ut empty|
|00001280| 20 69 6e 74 6f 20 67 4f | 4b 54 6f 43 6f 6c 6f 72 | into gO|KToColor|
|00001290| 69 7a 65 20 2d 2d 20 65 | 6e 61 62 6c 65 20 58 43 |ize -- e|nable XC|
|000012a0| 4d 44 0d 63 6f 6c 6f 72 | 69 7a 65 48 43 20 22 69 |MD.color|izeHC "i|
|000012b0| 6e 73 74 61 6c 6c 22 2c | 64 65 70 74 68 0d 0d 69 |nstall",|depth..i|
|000012c0| 66 20 74 68 65 20 72 65 | 73 75 6c 74 20 69 73 20 |f the re|sult is |
|000012d0| 65 6d 70 74 79 0d 74 68 | 65 6e 20 63 6f 6c 6f 72 |empty.th|en color|
|000012e0| 69 7a 65 48 43 20 22 61 | 73 73 69 67 6e 54 6f 46 |izeHC "a|ssignToF|
|000012f0| 72 6f 6e 74 22 0d 0d 70 | 75 74 20 74 68 65 20 72 |ront"..p|ut the r|
|00001300| 65 73 75 6c 74 20 69 6e | 74 6f 20 67 4f 4b 54 6f |esult in|to gOKTo|
|00001310| 43 6f 6c 6f 72 69 7a 65 | 0d 70 75 74 20 64 65 70 |Colorize|.put dep|
|00001320| 74 68 20 69 6e 74 6f 20 | 67 48 43 64 65 70 74 68 |th into |gHCdepth|
|00001330| 0d 0d 72 65 74 75 72 6e | 20 67 4f 4b 54 6f 43 6f |..return| gOKToCo|
|00001340| 6c 6f 72 69 7a 65 0d 65 | 6e 64 20 73 74 61 63 6b |lorize.e|nd stack|
|00001350| 41 63 74 69 76 61 74 65 | 0d 0d 6f 6e 20 63 48 43 |Activate|..on cHC|
|00001360| 64 69 73 70 6f 73 65 0d | 67 6c 6f 62 61 6c 20 67 |dispose.|global g|
|00001370| 4f 4b 54 6f 43 6f 6c 6f | 72 69 7a 65 2c 20 67 48 |OKToColo|rize, gH|
|00001380| 43 64 65 70 74 68 0d 69 | 66 20 6e 6f 74 20 74 68 |Cdepth.i|f not th|
|00001390| 65 20 6c 6f 63 6b 53 63 | 72 65 65 6e 20 74 68 65 |e lockSc|reen the|
|000013a0| 6e 20 6c 6f 63 6b 20 73 | 63 72 65 65 6e 20 2d 2d |n lock s|creen --|
|000013b0| 20 65 6e 73 75 72 65 20 | 6c 61 74 65 72 20 73 63 | ensure |later sc|
|000013c0| 72 65 65 6e 20 75 70 64 | 61 74 65 0d 43 6f 6c 6f |reen upd|ate.Colo|
|000013d0| 72 69 7a 65 48 43 20 22 | 44 69 73 70 6f 73 65 22 |rizeHC "|Dispose"|
|000013e0| 0d 69 66 20 74 68 65 20 | 72 65 73 75 6c 74 20 69 |.if the |result i|
|000013f0| 73 20 6e 6f 74 20 65 6d | 70 74 79 20 74 68 65 6e |s not em|pty then|
|00001400| 20 61 6e 73 77 65 72 20 | 74 68 65 20 72 65 73 75 | answer |the resu|
|00001410| 6c 74 0d 70 75 74 20 22 | 44 69 73 61 62 6c 65 64 |lt.put "|Disabled|
|00001420| 22 20 69 6e 74 6f 20 67 | 4f 4b 54 6f 43 6f 6c 6f |" into g|OKToColo|
|00001430| 72 69 7a 65 0d 70 75 74 | 20 31 20 69 6e 74 6f 20 |rize.put| 1 into |
|00001440| 67 48 43 64 65 70 74 68 | 0d 65 6e 64 20 63 48 43 |gHCdepth|.end cHC|
|00001450| 64 69 73 70 6f 73 65 0d | 0d 2d 2d 20 77 69 6e 64 |dispose.|.-- wind|
|00001460| 6f 77 20 61 69 64 73 0d | 0d 6f 6e 20 63 48 43 61 |ow aids.|.on cHCa|
|00001470| 64 64 57 69 6e 64 6f 77 | 54 6f 4c 69 73 74 20 6e |ddWindow|ToList n|
|00001480| 61 6d 65 0d 67 6c 6f 62 | 61 6c 20 67 48 43 77 69 |ame.glob|al gHCwi|
|00001490| 6e 64 6f 77 73 0d 70 75 | 74 20 6e 61 6d 65 20 69 |ndows.pu|t name i|
|000014a0| 6e 74 6f 20 69 74 65 6d | 20 28 28 74 68 65 20 6e |nto item| ((the n|
|000014b0| 75 6d 62 65 72 20 6f 66 | 20 69 74 65 6d 73 20 69 |umber of| items i|
|000014c0| 6e 20 67 48 43 77 69 6e | 64 6f 77 73 29 2b 31 29 |n gHCwin|dows)+1)|
|000014d0| 20 c2 0d 6f 66 20 67 48 | 43 77 69 6e 64 6f 77 73 | ..of gH|Cwindows|
|000014e0| 0d 65 6e 64 20 63 48 43 | 61 64 64 57 69 6e 64 6f |.end cHC|addWindo|
|000014f0| 77 54 6f 4c 69 73 74 0d | 0d 6f 6e 20 63 48 43 70 |wToList.|.on cHCp|
|00001500| 69 63 74 57 69 6e 64 6f | 77 20 6e 61 6d 65 2c 20 |ictWindo|w name, |
|00001510| 70 6f 73 2c 20 6b 69 6e | 64 2c 20 64 69 74 68 65 |pos, kin|d, dithe|
|00001520| 72 0d 67 6c 6f 62 61 6c | 20 67 48 43 6f 70 74 69 |r.global| gHCopti|
|00001530| 6f 6e 73 0d 69 66 20 63 | 68 61 72 20 31 30 20 6f |ons.if c|har 10 o|
|00001540| 66 20 67 48 43 6f 70 74 | 69 6f 6e 73 20 69 73 20 |f gHCopt|ions is |
|00001550| 6e 6f 74 20 31 20 74 68 | 65 6e 0d 61 6e 73 77 65 |not 1 th|en.answe|
|00001560| 72 20 22 59 6f 75 20 6e | 65 65 64 20 74 6f 20 73 |r "You n|eed to s|
|00001570| 65 74 20 74 68 65 20 d4 | 57 69 6e 64 6f 77 73 d5 |et the .|Windows.|
|00001580| 20 6f 70 74 69 6f 6e 20 | 62 65 66 6f 72 65 22 20 | option |before" |
|00001590| 26 26 20 c2 0d 22 63 61 | 6c 6c 69 6e 67 20 63 48 |&& .."ca|lling cH|
|000015a0| 43 70 69 63 74 57 69 6e | 64 6f 77 2e 0d 65 78 69 |CpictWin|dow..exi|
|000015b0| 74 20 63 48 43 70 69 63 | 74 57 69 6e 64 6f 77 0d |t cHCpic|tWindow.|
|000015c0| 65 6e 64 20 69 66 0d 69 | 66 20 6b 69 6e 64 20 69 |end if.i|f kind i|
|000015d0| 73 20 65 6d 70 74 79 20 | 74 68 65 6e 20 70 75 74 |s empty |then put|
|000015e0| 20 72 65 63 74 20 69 6e | 74 6f 20 6b 69 6e 64 0d | rect in|to kind.|
|000015f0| 69 66 20 6e 61 6d 65 20 | 69 73 20 61 20 6e 75 6d |if name |is a num|
|00001600| 62 65 72 20 74 68 65 6e | 0d 61 6e 73 77 65 72 20 |ber then|.answer |
|00001610| 22 63 48 43 70 69 63 74 | 57 69 6e 64 6f 77 20 63 |"cHCpict|Window c|
|00001620| 61 6e 6e 6f 74 20 64 65 | 61 6c 20 77 69 74 68 20 |annot de|al with |
|00001630| 72 65 73 6f 75 72 63 65 | 20 6e 75 6d 62 65 72 73 |resource| numbers|
|00001640| 21 22 0d 65 78 69 74 20 | 63 48 43 70 69 63 74 57 |!".exit |cHCpictW|
|00001650| 69 6e 64 6f 77 0d 65 6e | 64 20 69 66 0d 69 66 20 |indow.en|d if.if |
|00001660| 6e 61 6d 65 20 63 6f 6e | 74 61 69 6e 73 20 22 3a |name con|tains ":|
|00001670| 22 20 74 68 65 6e 0d 70 | 69 63 74 75 72 65 20 6e |" then.p|icture n|
|00001680| 61 6d 65 2c 20 66 69 6c | 65 2c 20 6b 69 6e 64 2c |ame, fil|e, kind,|
|00001690| 20 46 61 6c 73 65 0d 65 | 6c 73 65 0d 70 69 63 74 | False.e|lse.pict|
|000016a0| 75 72 65 20 6e 61 6d 65 | 2c 20 72 65 73 6f 75 72 |ure name|, resour|
|000016b0| 63 65 2c 20 6b 69 6e 64 | 2c 20 46 61 6c 73 65 0d |ce, kind|, False.|
|000016c0| 65 6e 64 20 69 66 0d 69 | 66 20 74 68 65 20 72 65 |end if.i|f the re|
|000016d0| 73 75 6c 74 20 69 73 20 | 65 6d 70 74 79 20 74 68 |sult is |empty th|
|000016e0| 65 6e 20 2d 2d 20 6f 74 | 68 65 72 77 69 73 65 20 |en -- ot|herwise |
|000016f0| 77 69 6c 6c 20 73 74 69 | 6c 6c 20 62 65 20 73 65 |will sti|ll be se|
|00001700| 74 20 6f 6e 20 72 65 74 | 75 72 6e 0d 69 66 20 64 |t on ret|urn.if d|
|00001710| 69 74 68 65 72 20 69 73 | 20 6e 6f 74 20 65 6d 70 |ither is| not emp|
|00001720| 74 79 20 74 68 65 6e 20 | 73 65 74 20 74 68 65 20 |ty then |set the |
|00001730| 64 69 74 68 65 72 69 6e | 67 20 6f 66 20 77 69 6e |ditherin|g of win|
|00001740| 64 6f 77 20 6e 61 6d 65 | 20 74 6f 20 64 69 74 68 |dow name| to dith|
|00001750| 65 72 0d 69 66 20 74 68 | 65 20 6e 75 6d 62 65 72 |er.if th|e number|
|00001760| 20 6f 66 20 69 74 65 6d | 73 20 6f 66 20 70 6f 73 | of item|s of pos|
|00001770| 20 69 73 20 34 20 74 68 | 65 6e 0d 73 65 74 20 74 | is 4 th|en.set t|
|00001780| 68 65 20 72 65 63 74 20 | 6f 66 20 77 69 6e 64 6f |he rect |of windo|
|00001790| 77 20 6e 61 6d 65 20 74 | 6f 20 70 6f 73 0d 65 6c |w name t|o pos.el|
|000017a0| 73 65 20 2d 2d 20 61 73 | 73 75 6d 65 20 32 0d 73 |se -- as|sume 2.s|
|000017b0| 65 74 20 74 68 65 20 6c | 6f 63 20 6f 66 20 77 69 |et the l|oc of wi|
|000017c0| 6e 64 6f 77 20 6e 61 6d | 65 20 74 6f 20 70 6f 73 |ndow nam|e to pos|
|000017d0| 0d 65 6e 64 20 69 66 0d | 2d 2d 63 48 43 61 64 64 |.end if.|--cHCadd|
|000017e0| 57 69 6e 64 6f 77 54 6f | 4c 69 73 74 20 6e 61 6d |WindowTo|List nam|
|000017f0| 65 0d 67 6c 6f 62 61 6c | 20 67 48 43 77 69 6e 64 |e.global| gHCwind|
|00001800| 6f 77 73 0d 70 75 74 20 | 6e 61 6d 65 20 69 6e 74 |ows.put |name int|
|00001810| 6f 20 69 74 65 6d 20 28 | 28 74 68 65 20 6e 75 6d |o item (|(the num|
|00001820| 62 65 72 20 6f 66 20 69 | 74 65 6d 73 20 69 6e 20 |ber of i|tems in |
|00001830| 67 48 43 77 69 6e 64 6f | 77 73 29 2b 31 29 20 c2 |gHCwindo|ws)+1) .|
|00001840| 0d 6f 66 20 67 48 43 77 | 69 6e 64 6f 77 73 0d 65 |.of gHCw|indows.e|
|00001850| 6e 64 20 69 66 0d 65 6e | 64 20 63 48 43 70 69 63 |nd if.en|d cHCpic|
|00001860| 74 57 69 6e 64 6f 77 0d | 0d 6f 6e 20 63 48 43 70 |tWindow.|.on cHCp|
|00001870| 69 63 74 6f 69 64 20 6e | 61 6d 65 2c 20 61 72 67 |ictoid n|ame, arg|
|00001880| 31 2c 20 61 72 67 32 2c | 20 61 72 67 33 2c 20 61 |1, arg2,| arg3, a|
|00001890| 72 67 34 2c 20 61 72 67 | 35 2c 20 61 72 67 36 2c |rg4, arg|5, arg6,|
|000018a0| 20 61 72 67 37 0d 67 6c | 6f 62 61 6c 20 67 48 43 | arg7.gl|obal gHC|
|000018b0| 6f 70 74 69 6f 6e 73 0d | 69 66 20 63 68 61 72 20 |options.|if char |
|000018c0| 31 30 20 6f 66 20 67 48 | 43 6f 70 74 69 6f 6e 73 |10 of gH|Coptions|
|000018d0| 20 69 73 20 6e 6f 74 20 | 31 20 74 68 65 6e 0d 61 | is not |1 then.a|
|000018e0| 6e 73 77 65 72 20 22 59 | 6f 75 20 6e 65 65 64 20 |nswer "Y|ou need |
|000018f0| 74 6f 20 73 65 74 20 74 | 68 65 20 d4 57 69 6e 64 |to set t|he .Wind|
|00001900| 6f 77 73 d5 20 6f 70 74 | 69 6f 6e 20 62 65 66 6f |ows. opt|ion befo|
|00001910| 72 65 22 20 26 26 20 c2 | 0d 22 63 61 6c 6c 69 6e |re" && .|."callin|
|00001920| 67 20 63 48 43 70 69 63 | 74 6f 69 64 2e 22 0d 65 |g cHCpic|toid.".e|
|00001930| 78 69 74 20 63 48 43 70 | 69 63 74 6f 69 64 0d 65 |xit cHCp|ictoid.e|
|00001940| 6e 64 20 69 66 0d 69 66 | 20 6e 6f 74 20 28 74 68 |nd if.if| not (th|
|00001950| 65 20 53 74 61 63 6b 73 | 49 6e 55 73 65 20 63 6f |e Stacks|InUse co|
|00001960| 6e 74 61 69 6e 73 20 22 | 50 69 63 74 6f 69 64 20 |ntains "|Pictoid |
|00001970| 58 43 4d 44 22 29 20 74 | 68 65 6e 0d 61 6e 73 77 |XCMD") t|hen.answ|
|00001980| 65 72 20 22 59 6f 75 20 | 6d 75 73 74 20 67 69 76 |er "You |must giv|
|00001990| 65 20 d4 73 74 61 72 74 | 20 75 73 69 6e 67 20 73 |e .start| using s|
|000019a0| 74 61 63 6b 22 20 26 26 | 20 71 75 6f 74 65 20 26 |tack" &&| quote &|
|000019b0| 20 22 50 69 63 74 6f 69 | 64 20 58 43 4d 44 22 c2 | "Pictoi|d XCMD".|
|000019c0| 0d 26 20 71 75 6f 74 65 | 20 26 20 22 d5 20 62 65 |.& quote| & ". be|
|000019d0| 66 6f 72 65 20 75 73 69 | 6e 67 20 63 48 43 70 69 |fore usi|ng cHCpi|
|000019e0| 63 74 6f 69 64 22 0d 65 | 78 69 74 20 63 48 43 70 |ctoid".e|xit cHCp|
|000019f0| 69 63 74 6f 69 64 0d 65 | 6e 64 20 69 66 0d 70 75 |ictoid.e|nd if.pu|
|00001a00| 74 20 74 68 65 20 70 61 | 72 61 6d 73 20 69 6e 74 |t the pa|rams int|
|00001a10| 6f 20 70 61 72 61 6d 73 | 0d 67 65 74 20 6f 66 66 |o params|.get off|
|00001a20| 73 65 74 20 28 71 75 6f | 74 65 20 26 20 22 73 68 |set (quo|te & "sh|
|00001a30| 6f 77 22 20 26 20 71 75 | 6f 74 65 2c 20 69 74 29 |ow" & qu|ote, it)|
|00001a40| 0d 69 66 20 69 74 20 3d | 20 30 20 74 68 65 6e 0d |.if it =| 0 then.|
|00001a50| 70 75 74 20 22 2c 22 20 | 26 20 71 75 6f 74 65 20 |put "," |& quote |
|00001a60| 26 20 22 68 69 64 65 22 | 20 26 20 71 75 6f 74 65 |& "hide"| & quote|
|00001a70| 20 61 66 74 65 72 20 70 | 61 72 61 6d 73 0d 65 6c | after p|arams.el|
|00001a80| 73 65 0d 70 75 74 20 71 | 75 6f 74 65 20 26 20 22 |se.put q|uote & "|
|00001a90| 68 69 64 65 22 20 26 20 | 71 75 6f 74 65 20 69 6e |hide" & |quote in|
|00001aa0| 74 6f 20 63 68 61 72 20 | 69 74 20 74 6f 20 28 69 |to char |it to (i|
|00001ab0| 74 2b 36 29 20 6f 66 20 | 70 61 72 61 6d 73 0d 65 |t+6) of |params.e|
|00001ac0| 6e 64 20 69 66 0d 70 75 | 74 20 22 70 69 63 74 6f |nd if.pu|t "picto|
|00001ad0| 69 64 22 20 69 6e 74 6f | 20 77 6f 72 64 20 31 20 |id" into| word 1 |
|00001ae0| 6f 66 20 70 61 72 61 6d | 73 0d 64 6f 20 70 61 72 |of param|s.do par|
|00001af0| 61 6d 73 0d 69 66 20 74 | 68 65 20 72 65 73 75 6c |ams.if t|he resul|
|00001b00| 74 20 69 73 20 65 6d 70 | 74 79 20 74 68 65 6e 0d |t is emp|ty then.|
|00001b10| 2d 2d 61 64 64 57 69 6e | 64 6f 77 54 6f 4c 69 73 |--addWin|dowToLis|
|00001b20| 74 20 6e 61 6d 65 0d 67 | 6c 6f 62 61 6c 20 67 48 |t name.g|lobal gH|
|00001b30| 43 77 69 6e 64 6f 77 73 | 0d 70 75 74 20 6e 61 6d |Cwindows|.put nam|
|00001b40| 65 20 69 6e 74 6f 20 69 | 74 65 6d 20 28 28 74 68 |e into i|tem ((th|
|00001b50| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 69 74 65 6d |e number| of item|
|00001b60| 73 20 69 6e 20 67 48 43 | 77 69 6e 64 6f 77 73 29 |s in gHC|windows)|
|00001b70| 2b 31 29 20 c2 0d 6f 66 | 20 67 48 43 77 69 6e 64 |+1) ..of| gHCwind|
|00001b80| 6f 77 73 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 63 |ows.end |if.end c|
|00001b90| 48 43 70 69 63 74 6f 69 | 64 0d 0d 6f 6e 20 63 48 |HCpictoi|d..on cH|
|00001ba0| 43 73 68 6f 77 57 69 6e | 64 6f 77 73 0d 67 6c 6f |CshowWin|dows.glo|
|00001bb0| 62 61 6c 20 67 48 43 77 | 69 6e 64 6f 77 73 0d 69 |bal gHCw|indows.i|
|00001bc0| 66 20 67 48 43 77 69 6e | 64 6f 77 73 20 69 73 20 |f gHCwin|dows is |
|00001bd0| 6e 6f 74 20 65 6d 70 74 | 79 20 74 68 65 6e 0d 69 |not empt|y then.i|
|00001be0| 66 20 74 68 65 20 6c 6f | 63 6b 53 63 72 65 65 6e |f the lo|ckScreen|
|00001bf0| 20 74 68 65 6e 20 63 48 | 43 62 72 65 61 6b 53 63 | then cH|CbreakSc|
|00001c00| 72 65 65 6e 4c 6f 63 6b | 0d 72 65 70 65 61 74 20 |reenLock|.repeat |
|00001c10| 77 69 74 68 20 69 3d 31 | 20 74 6f 20 74 68 65 20 |with i=1| to the |
|00001c20| 6e 75 6d 62 65 72 20 6f | 66 20 69 74 65 6d 73 20 |number o|f items |
|00001c30| 69 6e 20 67 48 43 77 69 | 6e 64 6f 77 73 0d 67 65 |in gHCwi|ndows.ge|
|00001c40| 74 20 6c 61 73 74 49 74 | 65 6d 20 28 22 3a 22 2c |t lastIt|em (":",|
|00001c50| 20 69 74 65 6d 20 69 20 | 6f 66 20 67 48 43 77 69 | item i |of gHCwi|
|00001c60| 6e 64 6f 77 73 29 0d 69 | 66 20 74 68 65 72 65 20 |ndows).i|f there |
|00001c70| 69 73 20 61 20 77 69 6e | 64 6f 77 20 69 74 20 74 |is a win|dow it t|
|00001c80| 68 65 6e 20 73 68 6f 77 | 20 77 69 6e 64 6f 77 20 |hen show| window |
|00001c90| 69 74 0d 65 6c 73 65 20 | 61 6e 73 77 65 72 20 22 |it.else |answer "|
|00001ca0| 63 48 43 73 68 6f 77 57 | 69 6e 64 6f 77 73 3a 20 |cHCshowW|indows: |
|00001cb0| 73 65 65 6d 20 74 6f 20 | 68 61 76 65 20 6c 6f 73 |seem to |have los|
|00001cc0| 74 20 77 69 6e 64 6f 77 | 22 20 26 26 20 69 74 0d |t window|" && it.|
|00001cd0| 65 6e 64 20 72 65 70 65 | 61 74 0d 65 6e 64 20 69 |end repe|at.end i|
|00001ce0| 66 0d 65 6e 64 20 63 48 | 43 73 68 6f 77 57 69 6e |f.end cH|CshowWin|
|00001cf0| 64 6f 77 73 0d 0d 6f 6e | 20 63 48 43 68 69 64 65 |dows..on| cHChide|
|00001d00| 57 69 6e 64 6f 77 73 0d | 67 6c 6f 62 61 6c 20 67 |Windows.|global g|
|00001d10| 48 43 77 69 6e 64 6f 77 | 73 0d 69 66 20 67 48 43 |HCwindow|s.if gHC|
|00001d20| 77 69 6e 64 6f 77 73 20 | 69 73 20 6e 6f 74 20 65 |windows |is not e|
|00001d30| 6d 70 74 79 20 74 68 65 | 6e 0d 63 48 43 62 72 65 |mpty the|n.cHCbre|
|00001d40| 61 6b 53 63 72 65 65 6e | 4c 6f 63 6b 0d 72 65 70 |akScreen|Lock.rep|
|00001d50| 65 61 74 20 77 69 74 68 | 20 69 3d 31 20 74 6f 20 |eat with| i=1 to |
|00001d60| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 69 74 |the numb|er of it|
|00001d70| 65 6d 73 20 69 6e 20 67 | 48 43 77 69 6e 64 6f 77 |ems in g|HCwindow|
|00001d80| 73 0d 67 65 74 20 6c 61 | 73 74 49 74 65 6d 20 28 |s.get la|stItem (|
|00001d90| 22 3a 22 2c 20 69 74 65 | 6d 20 69 20 6f 66 20 67 |":", ite|m i of g|
|00001da0| 48 43 77 69 6e 64 6f 77 | 73 29 0d 69 66 20 74 68 |HCwindow|s).if th|
|00001db0| 65 72 65 20 69 73 20 61 | 20 77 69 6e 64 6f 77 20 |ere is a| window |
|00001dc0| 69 74 20 74 68 65 6e 20 | 68 69 64 65 20 77 69 6e |it then |hide win|
|00001dd0| 64 6f 77 20 69 74 0d 65 | 6c 73 65 20 61 6e 73 77 |dow it.e|lse answ|
|00001de0| 65 72 20 22 63 48 43 73 | 68 6f 77 57 69 6e 64 6f |er "cHCs|howWindo|
|00001df0| 77 73 3a 20 73 65 65 6d | 20 74 6f 20 68 61 76 65 |ws: seem| to have|
|00001e00| 20 6c 6f 73 74 20 77 69 | 6e 64 6f 77 22 20 26 26 | lost wi|ndow" &&|
|00001e10| 20 69 74 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 65 | it.end |repeat.e|
|00001e20| 6e 64 20 69 66 0d 65 6e | 64 20 63 48 43 68 69 64 |nd if.en|d cHChid|
|00001e30| 65 57 69 6e 64 6f 77 73 | 0d 0d 6f 6e 20 63 48 43 |eWindows|..on cHC|
|00001e40| 6b 69 6c 6c 57 69 6e 64 | 6f 77 73 0d 67 6c 6f 62 |killWind|ows.glob|
|00001e50| 61 6c 20 67 48 43 77 69 | 6e 64 6f 77 73 0d 72 65 |al gHCwi|ndows.re|
|00001e60| 70 65 61 74 20 77 69 74 | 68 20 69 3d 31 20 74 6f |peat wit|h i=1 to|
|00001e70| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 69 | the num|ber of i|
|00001e80| 74 65 6d 73 20 69 6e 20 | 67 48 43 77 69 6e 64 6f |tems in |gHCwindo|
|00001e90| 77 73 0d 67 65 74 20 6c | 61 73 74 49 74 65 6d 20 |ws.get l|astItem |
|00001ea0| 28 22 3a 22 2c 20 69 74 | 65 6d 20 69 20 6f 66 20 |(":", it|em i of |
|00001eb0| 67 48 43 77 69 6e 64 6f | 77 73 29 0d 69 66 20 74 |gHCwindo|ws).if t|
|00001ec0| 68 65 72 65 20 69 73 20 | 61 20 77 69 6e 64 6f 77 |here is |a window|
|00001ed0| 20 69 74 20 74 68 65 6e | 20 63 6c 6f 73 65 20 77 | it then| close w|
|00001ee0| 69 6e 64 6f 77 20 69 74 | 0d 65 6e 64 20 72 65 70 |indow it|.end rep|
|00001ef0| 65 61 74 0d 70 75 74 20 | 65 6d 70 74 79 20 69 6e |eat.put |empty in|
|00001f00| 74 6f 20 67 48 43 77 69 | 6e 64 6f 77 73 0d 65 6e |to gHCwi|ndows.en|
|00001f10| 64 20 63 48 43 6b 69 6c | 6c 57 69 6e 64 6f 77 73 |d cHCkil|lWindows|
|00001f20| 0d 0d 6f 6e 20 63 48 43 | 6b 69 6c 6c 57 69 6e 64 |..on cHC|killWind|
|00001f30| 6f 77 20 6e 61 6d 65 0d | 2d 2d 20 6e 6f 74 65 20 |ow name.|-- note |
|00001f40| 77 65 20 64 65 6c 69 62 | 65 72 61 74 65 6c 79 20 |we delib|erately |
|00001f50| 63 68 65 63 6b 20 73 65 | 70 61 72 61 74 65 6c 79 |check se|parately|
|00001f60| 20 66 72 6f 6d 20 74 68 | 65 20 77 69 6e 64 6f 77 | from th|e window|
|00001f70| 20 61 6e 64 20 74 68 65 | 20 6c 69 73 74 0d 2d 2d | and the| list.--|
|00001f80| 20 6a 75 73 74 20 69 6e | 20 63 61 73 65 20 73 6f | just in| case so|
|00001f90| 6d 65 6f 6e 65 20 68 61 | 73 20 70 6c 61 79 65 64 |meone ha|s played|
|00001fa0| 20 77 69 74 68 20 73 6f | 6d 65 20 6f 74 68 65 72 | with so|me other|
|00001fb0| 20 63 6f 6d 6d 61 6e 64 | 73 2e 0d 67 6c 6f 62 61 | command|s..globa|
|00001fc0| 6c 20 67 48 43 77 69 6e | 64 6f 77 73 0d 70 75 74 |l gHCwin|dows.put|
|00001fd0| 20 6c 61 73 74 49 74 65 | 6d 20 28 22 3a 22 2c 20 | lastIte|m (":", |
|00001fe0| 6e 61 6d 65 29 20 69 6e | 74 6f 20 73 5f 6e 61 6d |name) in|to s_nam|
|00001ff0| 65 0d 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |e.if the|re is a |
|00002000| 77 69 6e 64 6f 77 20 73 | 5f 6e 61 6d 65 20 74 68 |window s|_name th|
|00002010| 65 6e 20 63 6c 6f 73 65 | 20 77 69 6e 64 6f 77 20 |en close| window |
|00002020| 73 5f 6e 61 6d 65 0d 72 | 65 70 65 61 74 20 77 69 |s_name.r|epeat wi|
|00002030| 74 68 20 69 3d 31 20 74 | 6f 20 74 68 65 20 6e 75 |th i=1 t|o the nu|
|00002040| 6d 62 65 72 20 6f 66 20 | 69 74 65 6d 73 20 69 6e |mber of |items in|
|00002050| 20 67 48 43 77 69 6e 64 | 6f 77 73 0d 67 65 74 20 | gHCwind|ows.get |
|00002060| 69 74 65 6d 20 69 20 6f | 66 20 67 48 43 77 69 6e |item i o|f gHCwin|
|00002070| 64 6f 77 73 0d 69 66 20 | 6e 61 6d 65 20 69 73 20 |dows.if |name is |
|00002080| 69 74 20 6f 72 20 73 5f | 6e 61 6d 65 20 69 73 20 |it or s_|name is |
|00002090| 6c 61 73 74 49 74 65 6d | 28 22 3a 22 2c 20 69 74 |lastItem|(":", it|
|000020a0| 29 20 74 68 65 6e 0d 64 | 65 6c 65 74 65 20 69 74 |) then.d|elete it|
|000020b0| 65 6d 20 69 20 6f 66 20 | 67 48 43 77 69 6e 64 6f |em i of |gHCwindo|
|000020c0| 77 73 0d 65 78 69 74 20 | 72 65 70 65 61 74 0d 65 |ws.exit |repeat.e|
|000020d0| 6e 64 20 69 66 0d 65 6e | 64 20 72 65 70 65 61 74 |nd if.en|d repeat|
|000020e0| 0d 65 6e 64 20 63 48 43 | 6b 69 6c 6c 57 69 6e 64 |.end cHC|killWind|
|000020f0| 6f 77 0d 0d 2d 2d 20 65 | 78 74 72 61 73 20 61 64 |ow..-- e|xtras ad|
|00002100| 64 65 64 20 62 79 20 4a | 46 20 74 6f 20 68 65 6c |ded by J|F to hel|
|00002110| 70 20 77 69 74 68 20 69 | 6e 74 65 67 72 61 74 69 |p with i|ntegrati|
|00002120| 6f 6e 20 69 6e 74 6f 20 | 73 74 61 63 6b 73 2e 20 |on into |stacks. |
|00002130| 53 65 65 20 49 6e 66 6f | 20 63 61 72 64 0d 0d 2d |See Info| card..-|
|00002140| 2d 20 6f 70 74 69 6f 6e | 20 66 6c 61 67 73 20 28 |- option| flags (|
|00002150| 31 20 69 66 20 73 65 74 | 29 0d 2d 2d 20 31 3a 20 |1 if set|).-- 1: |
|00002160| 48 43 43 6f 6c 6f 72 69 | 7a 65 2c 20 32 3a 20 48 |HCColori|ze, 2: H|
|00002170| 43 75 6e 43 6f 6c 6f 72 | 69 7a 65 2c 20 33 3a 20 |CunColor|ize, 3: |
|00002180| 48 43 62 57 68 69 74 65 | 2c 20 34 3a 20 48 43 75 |HCbWhite|, 4: HCu|
|00002190| 6e 42 57 68 69 74 65 0d | 2d 2d 20 35 3a 20 48 43 |nBWhite.|-- 5: HC|
|000021a0| 67 72 61 70 68 69 63 2c | 20 36 3a 20 48 43 75 6e |graphic,| 6: HCun|
|000021b0| 47 72 61 70 68 69 63 2c | 20 37 3a 20 6e 6f 45 72 |Graphic,| 7: noEr|
|000021c0| 72 6f 72 73 2c 20 38 3a | 20 66 6f 72 63 65 43 6f |rors, 8:| forceCo|
|000021d0| 6c 6f 72 2c 0d 2d 2d 20 | 39 3a 20 66 6f 72 63 65 |lor,.-- |9: force|
|000021e0| 42 57 2c 20 31 30 3a 20 | 57 69 6e 64 6f 77 73 2c |BW, 10: |Windows,|
|000021f0| 20 31 31 3a 20 6c 65 61 | 76 65 43 75 72 73 6f 72 | 11: lea|veCursor|
|00002200| 2c 20 31 32 3a 20 6e 6f | 56 69 73 75 61 6c 73 2c |, 12: no|Visuals,|
|00002210| 0d 2d 2d 20 31 33 3a 20 | 6e 6f 56 69 73 75 61 6c |.-- 13: |noVisual|
|00002220| 73 49 6e 43 6f 6c 6f 72 | 2c 20 31 34 3a 20 64 62 |sInColor|, 14: db|
|00002230| 43 6f 6c 6f 72 69 7a 65 | 48 43 2c 20 31 35 3a 20 |Colorize|HC, 15: |
|00002240| 48 43 70 72 65 47 72 61 | 70 68 69 63 2c 0d 2d 2d |HCpreGra|phic,.--|
|00002250| 20 31 36 3a 20 48 43 69 | 6e 69 74 0d 66 75 6e 63 | 16: HCi|nit.func|
|00002260| 74 69 6f 6e 20 63 48 43 | 4f 70 74 69 6f 6e 73 0d |tion cHC|Options.|
|00002270| 72 65 74 75 72 6e 20 22 | 48 43 63 6f 6c 6f 72 69 |return "|HCcolori|
|00002280| 7a 65 2c 48 43 75 6e 43 | 6f 6c 6f 72 69 7a 65 2c |ze,HCunC|olorize,|
|00002290| 48 43 62 57 68 69 74 65 | 2c 48 43 75 6e 42 57 68 |HCbWhite|,HCunBWh|
|000022a0| 69 74 65 2c 48 43 67 72 | 61 70 68 69 63 2c 22 20 |ite,HCgr|aphic," |
|000022b0| 26 c2 0d 22 48 43 75 6e | 47 72 61 70 68 69 63 2c |&.."HCun|Graphic,|
|000022c0| 6e 6f 45 72 72 6f 72 73 | 2c 66 6f 72 63 65 43 6f |noErrors|,forceCo|
|000022d0| 6c 6f 72 2c 66 6f 72 63 | 65 42 57 2c 57 69 6e 64 |lor,forc|eBW,Wind|
|000022e0| 6f 77 73 2c 6c 65 61 76 | 65 43 75 72 73 6f 72 2c |ows,leav|eCursor,|
|000022f0| 22 20 26 c2 0d 22 6e 6f | 56 69 73 75 61 6c 73 2c |" &.."no|Visuals,|
|00002300| 6e 6f 56 69 73 75 61 6c | 73 49 6e 43 6f 6c 6f 72 |noVisual|sInColor|
|00002310| 2c 64 62 43 6f 6c 6f 72 | 69 7a 65 48 43 2c 48 43 |,dbColor|izeHC,HC|
|00002320| 70 72 65 47 72 61 70 68 | 69 63 2c 48 43 69 6e 69 |preGraph|ic,HCini|
|00002330| 74 22 0d 65 6e 64 20 63 | 48 43 4f 70 74 69 6f 6e |t".end c|HCOption|
|00002340| 73 0d 0d 6f 6e 20 73 65 | 74 4f 70 74 69 6f 6e 73 |s..on se|tOptions|
|00002350| 20 6f 70 74 69 6f 6e 73 | 0d 67 6c 6f 62 61 6c 20 | options|.global |
|00002360| 67 48 43 4f 70 74 69 6f | 6e 73 0d 70 75 74 20 22 |gHCOptio|ns.put "|
|00002370| 30 30 30 30 30 30 30 30 | 30 30 30 30 30 30 30 30 |00000000|00000000|
|00002380| 22 20 69 6e 74 6f 20 67 | 48 43 4f 70 74 69 6f 6e |" into g|HCOption|
|00002390| 73 20 2d 2d 20 31 36 20 | 30 d5 73 0d 69 66 20 6f |s -- 16 |0.s.if o|
|000023a0| 70 74 69 6f 6e 73 20 69 | 73 20 65 6d 70 74 79 20 |ptions i|s empty |
|000023b0| 74 68 65 6e 20 2d 2d 20 | 66 6f 72 20 62 61 63 6b |then -- |for back|
|000023c0| 77 61 72 64 73 20 63 6f | 6d 70 61 74 61 62 69 6c |wards co|mpatabil|
|000023d0| 69 74 79 0d 70 75 74 20 | 22 31 31 22 20 69 6e 74 |ity.put |"11" int|
|000023e0| 6f 20 63 68 61 72 20 31 | 20 74 6f 20 32 20 6f 66 |o char 1| to 2 of|
|000023f0| 20 67 48 43 4f 70 74 69 | 6f 6e 73 0d 65 78 69 74 | gHCOpti|ons.exit|
|00002400| 20 73 65 74 4f 70 74 69 | 6f 6e 73 0d 65 6e 64 20 | setOpti|ons.end |
|00002410| 69 66 0d 70 75 74 20 63 | 48 43 4f 70 74 69 6f 6e |if.put c|HCOption|
|00002420| 73 28 29 20 69 6e 74 6f | 20 6b 6e 6f 77 6e 0d 72 |s() into| known.r|
|00002430| 65 70 65 61 74 20 77 69 | 74 68 20 69 20 3d 20 31 |epeat wi|th i = 1|
|00002440| 20 74 6f 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | to the |number o|
|00002450| 66 20 69 74 65 6d 73 20 | 6f 66 20 6f 70 74 69 6f |f items |of optio|
|00002460| 6e 73 0d 67 65 74 20 69 | 74 65 6d 20 69 20 6f 66 |ns.get i|tem i of|
|00002470| 20 6f 70 74 69 6f 6e 73 | 0d 69 66 20 69 74 20 69 | options|.if it i|
|00002480| 73 20 6e 6f 74 20 65 6d | 70 74 79 20 74 68 65 6e |s not em|pty then|
|00002490| 0d 70 75 74 20 46 61 6c | 73 65 20 69 6e 74 6f 20 |.put Fal|se into |
|000024a0| 66 6f 75 6e 64 0d 72 65 | 70 65 61 74 20 77 69 74 |found.re|peat wit|
|000024b0| 68 20 6b 20 3d 20 31 20 | 74 6f 20 74 68 65 20 6e |h k = 1 |to the n|
|000024c0| 75 6d 62 65 72 20 6f 66 | 20 69 74 65 6d 73 20 6f |umber of| items o|
|000024d0| 66 20 6b 6e 6f 77 6e 0d | 69 66 20 69 74 20 69 73 |f known.|if it is|
|000024e0| 20 69 74 65 6d 20 6b 20 | 6f 66 20 6b 6e 6f 77 6e | item k |of known|
|000024f0| 20 74 68 65 6e 0d 70 75 | 74 20 31 20 69 6e 74 6f | then.pu|t 1 into|
|00002500| 20 63 68 61 72 20 6b 20 | 6f 66 20 67 48 43 4f 70 | char k |of gHCOp|
|00002510| 74 69 6f 6e 73 0d 70 75 | 74 20 54 72 75 65 20 69 |tions.pu|t True i|
|00002520| 6e 74 6f 20 66 6f 75 6e | 64 0d 65 78 69 74 20 72 |nto foun|d.exit r|
|00002530| 65 70 65 61 74 0d 65 6e | 64 20 69 66 0d 65 6e 64 |epeat.en|d if.end|
|00002540| 20 72 65 70 65 61 74 0d | 69 66 20 6e 6f 74 20 66 | repeat.|if not f|
|00002550| 6f 75 6e 64 20 74 68 65 | 6e 20 61 6e 73 77 65 72 |ound the|n answer|
|00002560| 20 22 55 6e 6b 6e 6f 77 | 6e 20 6f 70 74 69 6f 6e | "Unknow|n option|
|00002570| 2e 20 49 67 6e 6f 72 69 | 6e 67 3a 22 20 26 26 20 |. Ignori|ng:" && |
|00002580| 69 74 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 72 65 |it.end i|f.end re|
|00002590| 70 65 61 74 0d 69 66 20 | 63 68 61 72 20 38 20 74 |peat.if |char 8 t|
|000025a0| 6f 20 39 20 6f 66 20 67 | 48 43 4f 70 74 69 6f 6e |o 9 of g|HCOption|
|000025b0| 73 20 69 73 20 22 31 31 | 22 20 74 68 65 6e 0d 61 |s is "11|" then.a|
|000025c0| 6e 73 77 65 72 20 22 59 | 6f 75 20 63 61 6e 6e 6f |nswer "Y|ou canno|
|000025d0| 74 20 73 65 74 20 62 6f | 74 68 20 66 6f 72 63 65 |t set bo|th force|
|000025e0| 43 6f 6c 6f 72 20 61 6e | 64 20 66 6f 72 63 65 42 |Color an|d forceB|
|000025f0| 57 2e 20 49 67 6e 6f 72 | 69 6e 67 20 62 6f 74 68 |W. Ignor|ing both|
|00002600| 21 22 0d 70 75 74 20 22 | 30 30 22 20 69 6e 74 6f |!".put "|00" into|
|00002610| 20 63 68 61 72 20 38 20 | 74 6f 20 39 20 6f 66 20 | char 8 |to 9 of |
|00002620| 67 48 43 4f 70 74 69 6f | 6e 73 0d 65 6e 64 20 69 |gHCOptio|ns.end i|
|00002630| 66 0d 65 6e 64 20 73 65 | 74 4f 70 74 69 6f 6e 73 |f.end se|tOptions|
|00002640| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 63 48 43 63 75 |..functi|on cHCcu|
|00002650| 72 72 4f 70 74 69 6f 6e | 73 0d 67 6c 6f 62 61 6c |rrOption|s.global|
|00002660| 20 67 48 43 6f 70 74 69 | 6f 6e 73 0d 70 75 74 20 | gHCopti|ons.put |
|00002670| 63 48 43 4f 70 74 69 6f | 6e 73 28 29 20 69 6e 74 |cHCOptio|ns() int|
|00002680| 6f 20 6e 61 6d 65 73 0d | 70 75 74 20 65 6d 70 74 |o names.|put empt|
|00002690| 79 20 69 6e 74 6f 20 72 | 65 73 75 6c 74 0d 72 65 |y into r|esult.re|
|000026a0| 70 65 61 74 20 77 69 74 | 68 20 69 20 3d 20 31 20 |peat wit|h i = 1 |
|000026b0| 74 6f 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |to the n|umber of|
|000026c0| 20 63 68 61 72 73 20 6f | 66 20 67 48 43 6f 70 74 | chars o|f gHCopt|
|000026d0| 69 6f 6e 73 0d 69 66 20 | 63 68 61 72 20 69 20 6f |ions.if |char i o|
|000026e0| 66 20 67 48 43 6f 70 74 | 69 6f 6e 73 20 69 73 20 |f gHCopt|ions is |
|000026f0| 31 0d 74 68 65 6e 20 70 | 75 74 20 69 74 65 6d 20 |1.then p|ut item |
|00002700| 69 20 6f 66 20 6e 61 6d | 65 73 20 26 20 22 2c 22 |i of nam|es & ","|
|00002710| 20 61 66 74 65 72 20 72 | 65 73 75 6c 74 0d 65 6e | after r|esult.en|
|00002720| 64 20 72 65 70 65 61 74 | 0d 69 66 20 72 65 73 75 |d repeat|.if resu|
|00002730| 6c 74 20 69 73 20 6e 6f | 74 20 65 6d 70 74 79 20 |lt is no|t empty |
|00002740| 74 68 65 6e 20 64 65 6c | 65 74 65 20 6c 61 73 74 |then del|ete last|
|00002750| 20 63 68 61 72 20 6f 66 | 20 72 65 73 75 6c 74 20 | char of| result |
|00002760| 2d 2d 20 74 72 61 69 6c | 69 6e 67 20 22 2c 22 0d |-- trail|ing ",".|
|00002770| 73 6f 72 74 20 69 74 65 | 6d 73 20 6f 66 20 72 65 |sort ite|ms of re|
|00002780| 73 75 6c 74 0d 72 65 74 | 75 72 6e 20 72 65 73 75 |sult.ret|urn resu|
|00002790| 6c 74 0d 65 6e 64 20 63 | 48 43 63 75 72 72 4f 70 |lt.end c|HCcurrOp|
|000027a0| 74 69 6f 6e 73 0d 0d 6f | 6e 20 4f 75 74 4f 66 44 |tions..o|n OutOfD|
|000027b0| 61 74 65 20 6e 61 6d 65 | 0d 61 6e 73 77 65 72 20 |ate name|.answer |
|000027c0| 22 59 6f 75 20 61 72 65 | 20 61 70 70 61 72 65 6e |"You are| apparen|
|000027d0| 74 6c 79 20 75 73 69 6e | 67 20 61 20 70 72 65 2d |tly usin|g a pre-|
|000027e0| 76 65 72 73 69 6f 6e 20 | 31 2e 30 2e 33 20 63 61 |version |1.0.3 ca|
|000027f0| 6c 6c 20 74 6f 22 20 26 | 26 20 c2 0d 6e 61 6d 65 |ll to" &|& ..name|
|00002800| 20 26 20 22 2e 20 59 6f | 75 20 77 69 6c 6c 20 6e | & ". Yo|u will n|
|00002810| 65 65 64 20 74 6f 20 6d | 6f 64 69 66 79 20 79 6f |eed to m|odify yo|
|00002820| 75 72 20 73 63 72 69 70 | 74 73 20 62 65 66 6f 72 |ur scrip|ts befor|
|00002830| 65 20 63 6f 6e 74 69 6e | 75 69 6e 67 2e 22 20 26 |e contin|uing." &|
|00002840| 26 20 c2 0d 22 49 6e 69 | 74 69 61 6c 69 73 61 74 |& .."Ini|tialisat|
|00002850| 69 6f 6e 20 61 62 6f 72 | 74 65 64 2e 22 0d 65 78 |ion abor|ted.".ex|
|00002860| 69 74 20 74 6f 20 68 79 | 70 65 72 63 61 72 64 0d |it to hy|percard.|
|00002870| 65 6e 64 20 4f 75 74 4f | 66 44 61 74 65 0d 0d 6f |end OutO|fDate..o|
|00002880| 6e 20 73 74 6f 72 65 53 | 74 61 74 65 0d 67 6c 6f |n storeS|tate.glo|
|00002890| 62 61 6c 20 67 48 43 6f | 70 74 69 6f 6e 73 2c 67 |bal gHCo|ptions,g|
|000028a0| 48 43 75 73 65 72 2c 67 | 48 43 6b 65 70 74 4e 61 |HCuser,g|HCkeptNa|
|000028b0| 6d 65 73 0d 67 65 74 20 | 74 68 65 20 76 61 6c 75 |mes.get |the valu|
|000028c0| 65 20 6f 66 20 77 6f 72 | 64 20 32 20 6f 66 20 74 |e of wor|d 2 of t|
|000028d0| 68 65 20 6c 6f 6e 67 20 | 6e 61 6d 65 20 6f 66 20 |he long |name of |
|000028e0| 74 68 69 73 20 73 74 61 | 63 6b 0d 72 65 70 65 61 |this sta|ck.repea|
|000028f0| 74 20 77 69 74 68 20 69 | 20 3d 20 31 20 74 6f 20 |t with i| = 1 to |
|00002900| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 6c 69 |the numb|er of li|
|00002910| 6e 65 73 20 6f 66 20 67 | 48 43 6b 65 70 74 4e 61 |nes of g|HCkeptNa|
|00002920| 6d 65 73 0d 69 66 20 6c | 69 6e 65 20 69 20 6f 66 |mes.if l|ine i of|
|00002930| 20 67 48 43 6b 65 70 74 | 4e 61 6d 65 73 20 69 73 | gHCkept|Names is|
|00002940| 20 69 74 20 74 68 65 6e | 0d 67 65 74 20 22 67 48 | it then|.get "gH|
|00002950| 43 6b 70 75 22 20 26 20 | 69 0d 64 6f 20 22 67 6c |Ckpu" & |i.do "gl|
|00002960| 6f 62 61 6c 22 20 26 26 | 20 69 74 20 26 20 72 65 |obal" &&| it & re|
|00002970| 74 75 72 6e 20 26 20 22 | 70 75 74 20 67 48 43 75 |turn & "|put gHCu|
|00002980| 73 65 72 20 69 6e 74 6f | 22 20 26 26 20 69 74 0d |ser into|" && it.|
|00002990| 67 65 74 20 22 67 48 43 | 6b 70 6f 22 20 26 20 69 |get "gHC|kpo" & i|
|000029a0| 0d 64 6f 20 22 67 6c 6f | 62 61 6c 22 20 26 26 20 |.do "glo|bal" && |
|000029b0| 69 74 20 26 20 72 65 74 | 75 72 6e 20 26 20 22 70 |it & ret|urn & "p|
|000029c0| 75 74 20 67 48 43 6f 70 | 74 69 6f 6e 73 20 69 6e |ut gHCop|tions in|
|000029d0| 74 6f 22 20 26 26 20 69 | 74 0d 65 78 69 74 20 73 |to" && i|t.exit s|
|000029e0| 74 6f 72 65 53 74 61 74 | 65 0d 65 6e 64 20 69 66 |toreStat|e.end if|
|000029f0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 2d 2d 20 61 |.end rep|eat.-- a|
|00002a00| 64 64 20 6e 65 77 20 65 | 6e 74 72 79 0d 70 75 74 |dd new e|ntry.put|
|00002a10| 20 69 74 20 26 20 72 65 | 74 75 72 6e 20 61 66 74 | it & re|turn aft|
|00002a20| 65 72 20 67 48 43 6b 65 | 70 74 4e 61 6d 65 73 0d |er gHCke|ptNames.|
|00002a30| 67 65 74 20 22 67 48 43 | 6b 70 75 22 20 26 20 74 |get "gHC|kpu" & t|
|00002a40| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 6c 69 6e |he numbe|r of lin|
|00002a50| 65 73 20 6f 66 20 67 48 | 43 6b 65 70 74 4e 61 6d |es of gH|CkeptNam|
|00002a60| 65 73 0d 64 6f 20 22 67 | 6c 6f 62 61 6c 22 20 26 |es.do "g|lobal" &|
|00002a70| 26 20 69 74 20 26 20 72 | 65 74 75 72 6e 20 26 20 |& it & r|eturn & |
|00002a80| 22 70 75 74 20 67 48 43 | 75 73 65 72 20 69 6e 74 |"put gHC|user int|
|00002a90| 6f 22 20 26 26 20 69 74 | 0d 67 65 74 20 22 67 48 |o" && it|.get "gH|
|00002aa0| 43 6b 70 6f 22 20 26 20 | 74 68 65 20 6e 75 6d 62 |Ckpo" & |the numb|
|00002ab0| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 6f 66 20 67 |er of li|nes of g|
|00002ac0| 48 43 6b 65 70 74 4e 61 | 6d 65 73 0d 64 6f 20 22 |HCkeptNa|mes.do "|
|00002ad0| 67 6c 6f 62 61 6c 22 20 | 26 26 20 69 74 20 26 20 |global" |&& it & |
|00002ae0| 72 65 74 75 72 6e 20 26 | 20 22 70 75 74 20 67 48 |return &| "put gH|
|00002af0| 43 6f 70 74 69 6f 6e 73 | 20 69 6e 74 6f 22 20 26 |Coptions| into" &|
|00002b00| 26 20 69 74 0d 65 6e 64 | 20 73 74 6f 72 65 53 74 |& it.end| storeSt|
|00002b10| 61 74 65 0d 0d 6f 6e 20 | 72 65 73 74 6f 72 65 53 |ate..on |restoreS|
|00002b20| 74 61 74 65 20 55 73 65 | 72 4f 6e 6c 79 0d 67 6c |tate Use|rOnly.gl|
|00002b30| 6f 62 61 6c 20 67 48 43 | 6f 70 74 69 6f 6e 73 2c |obal gHC|options,|
|00002b40| 67 48 43 75 73 65 72 2c | 67 48 43 6b 65 70 74 4e |gHCuser,|gHCkeptN|
|00002b50| 61 6d 65 73 0d 70 75 74 | 20 65 6d 70 74 79 20 69 |ames.put| empty i|
|00002b60| 6e 74 6f 20 67 48 43 75 | 73 65 72 20 2d 2d 20 69 |nto gHCu|ser -- i|
|00002b70| 6e 20 63 61 73 65 20 6e | 6f 6e 65 20 66 6f 75 6e |n case n|one foun|
|00002b80| 64 20 69 6e 20 73 74 6f | 72 65 0d 69 66 20 55 73 |d in sto|re.if Us|
|00002b90| 65 72 4f 6e 6c 79 20 69 | 73 20 6e 6f 74 20 54 72 |erOnly i|s not Tr|
|00002ba0| 75 65 20 74 68 65 6e 20 | 70 75 74 20 65 6d 70 74 |ue then |put empt|
|00002bb0| 79 20 69 6e 74 6f 20 67 | 48 43 6f 70 74 69 6f 6e |y into g|HCoption|
|00002bc0| 73 0d 67 65 74 20 74 68 | 65 20 76 61 6c 75 65 20 |s.get th|e value |
|00002bd0| 6f 66 20 77 6f 72 64 20 | 32 20 6f 66 20 74 68 65 |of word |2 of the|
|00002be0| 20 6c 6f 6e 67 20 6e 61 | 6d 65 20 6f 66 20 74 68 | long na|me of th|
|00002bf0| 69 73 20 73 74 61 63 6b | 0d 72 65 70 65 61 74 20 |is stack|.repeat |
|00002c00| 77 69 74 68 20 69 20 3d | 20 31 20 74 6f 20 74 68 |with i =| 1 to th|
|00002c10| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 6c 69 6e 65 |e number| of line|
|00002c20| 73 20 6f 66 20 67 48 43 | 6b 65 70 74 4e 61 6d 65 |s of gHC|keptName|
|00002c30| 73 0d 69 66 20 6c 69 6e | 65 20 69 20 6f 66 20 67 |s.if lin|e i of g|
|00002c40| 48 43 6b 65 70 74 4e 61 | 6d 65 73 20 69 73 20 69 |HCkeptNa|mes is i|
|00002c50| 74 20 74 68 65 6e 0d 67 | 65 74 20 22 67 48 43 6b |t then.g|et "gHCk|
|00002c60| 70 75 22 20 26 20 69 0d | 64 6f 20 22 67 6c 6f 62 |pu" & i.|do "glob|
|00002c70| 61 6c 22 20 26 26 20 69 | 74 20 26 20 72 65 74 75 |al" && i|t & retu|
|00002c80| 72 6e 20 26 20 22 70 75 | 74 22 20 26 26 20 69 74 |rn & "pu|t" && it|
|00002c90| 20 26 26 20 22 69 6e 74 | 6f 20 67 48 43 75 73 65 | && "int|o gHCuse|
|00002ca0| 72 22 0d 69 66 20 55 73 | 65 72 4f 6e 6c 79 20 69 |r".if Us|erOnly i|
|00002cb0| 73 20 6e 6f 74 20 54 72 | 75 65 20 74 68 65 6e 0d |s not Tr|ue then.|
|00002cc0| 67 65 74 20 22 67 48 43 | 6b 70 6f 22 20 26 20 69 |get "gHC|kpo" & i|
|00002cd0| 0d 64 6f 20 22 67 6c 6f | 62 61 6c 22 20 26 26 20 |.do "glo|bal" && |
|00002ce0| 69 74 20 26 20 72 65 74 | 75 72 6e 20 26 20 22 70 |it & ret|urn & "p|
|00002cf0| 75 74 22 20 26 26 20 69 | 74 20 26 26 20 22 69 6e |ut" && i|t && "in|
|00002d00| 74 6f 20 67 48 43 6f 70 | 74 69 6f 6e 73 22 0d 65 |to gHCop|tions".e|
|00002d10| 6e 64 20 69 66 0d 65 78 | 69 74 20 72 65 70 65 61 |nd if.ex|it repea|
|00002d20| 74 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 72 65 70 |t.end if|.end rep|
|00002d30| 65 61 74 0d 65 6e 64 20 | 72 65 73 74 6f 72 65 53 |eat.end |restoreS|
|00002d40| 74 61 74 65 0d 0d 6f 6e | 20 73 74 61 72 74 44 65 |tate..on| startDe|
|00002d50| 62 75 67 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |bug.if t|here is |
|00002d60| 61 20 73 74 61 63 6b 20 | 22 43 6f 6c 6f 72 69 7a |a stack |"Coloriz|
|00002d70| 69 6e 67 20 48 43 20 44 | 65 62 75 67 22 20 74 68 |ing HC D|ebug" th|
|00002d80| 65 6e 0d 67 6c 6f 62 61 | 6c 20 67 48 43 64 65 62 |en.globa|l gHCdeb|
|00002d90| 75 67 49 6e 69 74 0d 70 | 75 74 20 65 6d 70 74 79 |ugInit.p|ut empty|
|00002da0| 20 69 6e 74 6f 20 67 48 | 43 64 65 62 75 67 49 6e | into gH|CdebugIn|
|00002db0| 69 74 0d 73 74 61 72 74 | 20 75 73 69 6e 67 20 73 |it.start| using s|
|00002dc0| 74 61 63 6b 20 22 43 6f | 6c 6f 72 69 7a 69 6e 67 |tack "Co|lorizing|
|00002dd0| 20 48 43 20 44 65 62 75 | 67 22 0d 65 6c 73 65 0d | HC Debu|g".else.|
|00002de0| 61 6e 73 77 65 72 20 22 | 43 61 6e d5 74 20 66 69 |answer "|Can.t fi|
|00002df0| 6e 64 20 73 74 61 63 6b | 20 27 43 6f 6c 6f 72 69 |nd stack| 'Colori|
|00002e00| 7a 69 6e 67 20 48 43 20 | 58 43 4d 44 27 20 d0 20 |zing HC |XCMD' . |
|00002e10| 69 67 6e 6f 72 69 6e 67 | 20 64 62 43 6f 6c 6f 72 |ignoring| dbColor|
|00002e20| 69 7a 69 6e 67 48 43 22 | 0d 65 6e 64 20 69 66 0d |izingHC"|.end if.|
|00002e30| 65 6e 64 20 73 74 61 72 | 74 44 65 62 75 67 0d 0d |end star|tDebug..|
|00002e40| 6f 6e 20 63 48 43 73 65 | 74 55 70 20 55 73 65 43 |on cHCse|tUp UseC|
|00002e50| 6f 6c 6f 72 2c 20 73 69 | 6c 65 6e 74 2c 20 6f 70 |olor, si|lent, op|
|00002e60| 74 69 6f 6e 73 2c 20 64 | 65 70 74 68 2c 20 49 6e |tions, d|epth, In|
|00002e70| 53 74 61 72 74 0d 69 66 | 20 6f 70 74 69 6f 6e 73 |Start.if| options|
|00002e80| 20 69 73 20 61 20 6c 6f | 67 69 63 61 6c 20 74 68 | is a lo|gical th|
|00002e90| 65 6e 20 2d 2d 20 75 73 | 65 64 20 74 6f 20 62 65 |en -- us|ed to be|
|00002ea0| 20 42 57 6d 65 73 73 61 | 67 65 73 0d 4f 75 74 4f | BWmessa|ges.OutO|
|00002eb0| 66 44 61 74 65 20 22 63 | 48 43 73 65 74 55 70 22 |fDate "c|HCsetUp"|
|00002ec0| 0d 65 6e 64 20 69 66 0d | 0d 67 6c 6f 62 61 6c 20 |.end if.|.global |
|00002ed0| 67 4f 4b 74 6f 43 6f 6c | 6f 72 69 7a 65 2c 20 67 |gOKtoCol|orize, g|
|00002ee0| 48 43 6f 70 74 69 6f 6e | 73 2c 20 67 48 43 75 73 |HCoption|s, gHCus|
|00002ef0| 65 72 0d 0d 69 66 20 69 | 6e 53 74 61 72 74 20 69 |er..if i|nStart i|
|00002f00| 73 20 54 72 75 65 20 74 | 68 65 6e 20 73 65 74 4f |s True t|hen setO|
|00002f10| 70 74 69 6f 6e 73 20 6f | 70 74 69 6f 6e 73 0d 65 |ptions o|ptions.e|
|00002f20| 6c 73 65 0d 72 65 73 74 | 6f 72 65 53 74 61 74 65 |lse.rest|oreState|
|00002f30| 0d 69 66 20 67 48 43 6f | 70 74 69 6f 6e 73 20 69 |.if gHCo|ptions i|
|00002f40| 73 20 65 6d 70 74 79 20 | 74 68 65 6e 20 73 65 74 |s empty |then set|
|00002f50| 4f 70 74 69 6f 6e 73 20 | 6f 70 74 69 6f 6e 73 20 |Options |options |
|00002f60| 2d 2d 20 66 69 72 73 74 | 20 74 69 6d 65 0d 65 6c |-- first| time.el|
|00002f70| 73 65 20 69 66 20 73 69 | 6c 65 6e 74 20 69 73 20 |se if si|lent is |
|00002f80| 6e 6f 74 20 4e 6f 20 74 | 68 65 6e 20 70 75 74 20 |not No t|hen put |
|00002f90| 54 72 75 65 20 69 6e 74 | 6f 20 53 69 6c 65 6e 74 |True int|o Silent|
|00002fa0| 0d 65 6e 64 20 69 66 0d | 0d 69 66 20 63 68 61 72 |.end if.|.if char|
|00002fb0| 20 31 34 20 6f 66 20 67 | 48 43 4f 70 74 69 6f 6e | 14 of g|HCOption|
|00002fc0| 73 20 69 73 20 31 20 74 | 68 65 6e 20 73 74 61 72 |s is 1 t|hen star|
|00002fd0| 74 44 65 62 75 67 0d 0d | 69 66 20 63 68 61 72 20 |tDebug..|if char |
|00002fe0| 31 30 20 6f 66 20 67 48 | 43 4f 70 74 69 6f 6e 73 |10 of gH|COptions|
|00002ff0| 20 69 73 20 31 20 74 68 | 65 6e 20 2d 2d 20 57 69 | is 1 th|en -- Wi|
|00003000| 6e 64 6f 77 73 0d 2d 2d | 20 77 61 6e 74 20 74 6f |ndows.--| want to|
|00003010| 20 65 6e 73 75 72 65 20 | 74 68 65 20 73 74 61 63 | ensure |the stac|
|00003020| 6b 20 77 69 6e 64 6f 77 | 20 63 6f 6d 65 73 20 75 |k window| comes u|
|00003030| 70 20 62 65 66 6f 72 65 | 20 77 65 20 70 6c 61 63 |p before| we plac|
|00003040| 65 20 74 68 65 20 77 69 | 6e 64 6f 77 73 0d 63 48 |e the wi|ndows.cH|
|00003050| 43 62 72 65 61 6b 53 63 | 72 65 65 6e 4c 6f 63 6b |CbreakSc|reenLock|
|00003060| 0d 65 6e 64 20 69 66 0d | 70 75 74 20 65 6d 70 74 |.end if.|put empt|
|00003070| 79 20 69 6e 74 6f 20 67 | 48 43 75 73 65 72 0d 69 |y into g|HCuser.i|
|00003080| 66 20 69 6e 53 74 61 72 | 74 20 69 73 20 6e 6f 74 |f inStar|t is not|
|00003090| 20 54 72 75 65 20 61 6e | 64 20 63 68 61 72 20 31 | True an|d char 1|
|000030a0| 36 20 6f 66 20 67 48 43 | 6f 70 74 69 6f 6e 73 20 |6 of gHC|options |
|000030b0| 69 73 20 31 0d 74 68 65 | 6e 20 73 65 6e 64 20 48 |is 1.the|n send H|
|000030c0| 43 69 6e 69 74 20 74 6f | 20 74 68 69 73 20 63 61 |Cinit to| this ca|
|000030d0| 72 64 0d 65 6e 64 20 63 | 48 43 73 65 74 55 70 0d |rd.end c|HCsetUp.|
|000030e0| 0d 6f 6e 20 63 48 43 73 | 74 61 72 74 20 55 73 65 |.on cHCs|tart Use|
|000030f0| 43 6f 6c 6f 72 2c 20 73 | 69 6c 65 6e 74 2c 20 6f |Color, s|ilent, o|
|00003100| 70 74 69 6f 6e 73 2c 20 | 64 65 70 74 68 0d 69 66 |ptions, |depth.if|
|00003110| 20 6f 70 74 69 6f 6e 73 | 20 69 73 20 61 20 6c 6f | options| is a lo|
|00003120| 67 69 63 61 6c 20 74 68 | 65 6e 20 2d 2d 20 75 73 |gical th|en -- us|
|00003130| 65 64 20 74 6f 20 62 65 | 20 42 57 6d 65 73 73 61 |ed to be| BWmessa|
|00003140| 67 65 73 0d 4f 75 74 4f | 66 44 61 74 65 20 22 63 |ges.OutO|fDate "c|
|00003150| 48 43 73 74 61 72 74 22 | 0d 65 6e 64 20 69 66 0d |HCstart"|.end if.|
|00003160| 0d 63 48 43 6c 65 61 76 | 65 0d 63 48 43 73 65 74 |.cHCleav|e.cHCset|
|00003170| 55 70 20 55 73 65 43 6f | 6c 6f 72 2c 20 73 69 6c |Up UseCo|lor, sil|
|00003180| 65 6e 74 2c 20 6f 70 74 | 69 6f 6e 73 2c 20 64 65 |ent, opt|ions, de|
|00003190| 70 74 68 2c 20 54 72 75 | 65 0d 72 65 73 74 6f 72 |pth, Tru|e.restor|
|000031a0| 65 53 74 61 74 65 20 54 | 72 75 65 20 2d 2d 20 67 |eState T|rue -- g|
|000031b0| 48 43 75 73 65 72 20 69 | 73 20 65 72 61 73 65 64 |HCuser i|s erased|
|000031c0| 20 62 79 20 63 48 43 73 | 65 74 55 70 0d 69 66 20 | by cHCs|etUp.if |
|000031d0| 63 68 61 72 20 31 36 20 | 6f 66 20 67 48 43 6f 70 |char 16 |of gHCop|
|000031e0| 74 69 6f 6e 73 20 69 73 | 20 31 20 74 68 65 6e 20 |tions is| 1 then |
|000031f0| 73 65 6e 64 20 48 43 69 | 6e 69 74 20 74 6f 20 74 |send HCi|nit to t|
|00003200| 68 69 73 20 63 61 72 64 | 0d 63 48 43 63 6f 6c 6f |his card|.cHCcolo|
|00003210| 72 69 7a 65 0d 65 6e 64 | 20 63 48 43 73 74 61 72 |rize.end| cHCstar|
|00003220| 74 0d 0d 6f 6e 20 63 48 | 43 73 74 6f 70 0d 63 48 |t..on cH|Cstop.cH|
|00003230| 43 63 6c 6f 73 65 0d 73 | 74 6f 72 65 53 74 61 74 |Cclose.s|toreStat|
|00003240| 65 20 2d 2d 20 72 65 6d | 6f 76 65 20 70 72 65 76 |e -- rem|ove prev|
|00003250| 69 6f 75 73 20 65 6e 74 | 72 69 65 73 0d 63 48 43 |ious ent|ries.cHC|
|00003260| 73 68 6f 77 43 6f 6c 6f | 72 20 2d 2d 20 66 6f 72 |showColo|r -- for|
|00003270| 63 65 20 61 20 73 63 72 | 65 65 6e 20 75 70 64 61 |ce a scr|een upda|
|00003280| 74 65 0d 65 6e 64 20 63 | 48 43 73 74 6f 70 0d 0d |te.end c|HCstop..|
|00003290| 6f 6e 20 63 48 43 72 65 | 73 74 61 72 74 20 55 73 |on cHCre|start Us|
|000032a0| 65 43 6f 6c 6f 72 2c 20 | 6f 70 74 69 6f 6e 73 2c |eColor, |options,|
|000032b0| 20 64 65 70 74 68 0d 69 | 66 20 6f 70 74 69 6f 6e | depth.i|f option|
|000032c0| 73 20 69 73 20 61 20 6c | 6f 67 69 63 61 6c 20 74 |s is a l|ogical t|
|000032d0| 68 65 6e 20 2d 2d 20 75 | 73 65 64 20 74 6f 20 62 |hen -- u|sed to b|
|000032e0| 65 20 42 57 6d 65 73 73 | 61 67 65 73 0d 4f 75 74 |e BWmess|ages.Out|
|000032f0| 4f 66 44 61 74 65 20 22 | 63 48 43 72 65 73 74 61 |OfDate "|cHCresta|
|00003300| 72 74 22 0d 65 6e 64 20 | 69 66 0d 0d 67 6c 6f 62 |rt".end |if..glob|
|00003310| 61 6c 20 67 48 43 6f 70 | 74 69 6f 6e 73 2c 20 67 |al gHCop|tions, g|
|00003320| 4f 6b 54 6f 43 6f 6c 6f | 72 69 7a 65 0d 0d 72 65 |OkToColo|rize..re|
|00003330| 73 74 6f 72 65 53 74 61 | 74 65 0d 69 66 20 67 48 |storeSta|te.if gH|
|00003340| 43 6f 70 74 69 6f 6e 73 | 20 69 73 20 65 6d 70 74 |Coptions| is empt|
|00003350| 79 20 74 68 65 6e 20 73 | 65 74 4f 70 74 69 6f 6e |y then s|etOption|
|00003360| 73 20 6f 70 74 69 6f 6e | 73 20 2d 2d 20 66 69 72 |s option|s -- fir|
|00003370| 73 74 20 74 69 6d 65 21 | 0d 0d 69 66 20 55 73 65 |st time!|..if Use|
|00003380| 43 6f 6c 6f 72 20 69 73 | 20 6e 6f 74 20 66 61 6c |Color is| not fal|
|00003390| 73 20 74 68 65 6e 0d 69 | 66 20 6d 61 78 44 65 70 |s then.i|f maxDep|
|000033a0| 74 68 28 29 3d 31 20 61 | 6e 64 20 63 68 61 72 20 |th()=1 a|nd char |
|000033b0| 38 20 6f 66 20 67 48 43 | 6f 70 74 69 6f 6e 73 20 |8 of gHC|options |
|000033c0| 69 73 20 6e 6f 74 20 31 | 20 6f 72 c2 20 2d 2d 20 |is not 1| or. -- |
|000033d0| 66 6f 72 63 65 43 6f 6c | 6f 72 0d 63 68 61 72 20 |forceCol|or.char |
|000033e0| 39 20 6f 66 20 67 48 43 | 6f 70 74 69 6f 6e 73 20 |9 of gHC|options |
|000033f0| 69 73 20 31 20 74 68 65 | 6e 20 2d 2d 20 66 6f 72 |is 1 the|n -- for|
|00003400| 63 65 42 57 0d 63 48 43 | 64 69 73 70 6f 73 65 0d |ceBW.cHC|dispose.|
|00003410| 65 6c 73 65 0d 63 48 43 | 69 6e 73 74 61 6c 6c 20 |else.cHC|install |
|00003420| 64 65 70 74 68 0d 69 66 | 20 63 68 61 72 20 38 20 |depth.if| char 8 |
|00003430| 6f 66 20 67 48 43 6f 70 | 74 69 6f 6e 73 20 69 73 |of gHCop|tions is|
|00003440| 20 31 20 74 68 65 6e 20 | 70 75 74 20 65 6d 70 74 | 1 then |put empt|
|00003450| 79 20 69 6e 74 6f 20 67 | 4f 6b 54 6f 43 6f 6c 6f |y into g|OkToColo|
|00003460| 72 69 7a 65 0d 69 66 20 | 67 4f 6b 54 6f 43 6f 6c |rize.if |gOkToCol|
|00003470| 6f 72 69 7a 65 20 69 73 | 20 6e 6f 74 20 65 6d 70 |orize is| not emp|
|00003480| 74 79 20 74 68 65 6e 20 | 63 48 43 64 69 73 70 6f |ty then |cHCdispo|
|00003490| 73 65 20 2d 2d 20 74 69 | 64 79 20 75 70 0d 65 6e |se -- ti|dy up.en|
|000034a0| 64 20 69 66 0d 65 6c 73 | 65 0d 63 48 43 64 69 73 |d if.els|e.cHCdis|
|000034b0| 70 6f 73 65 0d 65 6e 64 | 20 69 66 0d 0d 69 66 20 |pose.end| if..if |
|000034c0| 63 68 61 72 20 31 34 20 | 6f 66 20 67 48 43 4f 70 |char 14 |of gHCOp|
|000034d0| 74 69 6f 6e 73 20 69 73 | 20 31 20 74 68 65 6e 20 |tions is| 1 then |
|000034e0| 73 74 61 72 74 44 65 62 | 75 67 0d 0d 69 66 20 63 |startDeb|ug..if c|
|000034f0| 68 61 72 20 31 30 20 6f | 66 20 67 48 43 4f 70 74 |har 10 o|f gHCOpt|
|00003500| 69 6f 6e 73 20 69 73 20 | 31 20 74 68 65 6e 20 2d |ions is |1 then -|
|00003510| 2d 20 57 69 6e 64 6f 77 | 73 0d 2d 2d 20 65 6e 73 |- Window|s.-- ens|
|00003520| 75 72 65 20 74 68 65 20 | 73 74 61 63 6b 20 77 69 |ure the |stack wi|
|00003530| 6e 64 6f 77 20 63 6f 6d | 65 73 20 75 70 20 62 65 |ndow com|es up be|
|00003540| 66 6f 72 65 20 77 65 20 | 70 6c 61 63 65 20 61 6e |fore we |place an|
|00003550| 79 20 77 69 6e 64 6f 77 | 73 0d 63 48 43 62 72 65 |y window|s.cHCbre|
|00003560| 61 6b 53 63 72 65 65 6e | 4c 6f 63 6b 0d 65 6e 64 |akScreen|Lock.end|
|00003570| 20 69 66 0d 0d 69 66 20 | 6e 6f 74 20 74 68 65 20 | if..if |not the |
|00003580| 6c 6f 63 6b 53 63 72 65 | 65 6e 20 74 68 65 6e 20 |lockScre|en then |
|00003590| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 69 66 20 63 |lock scr|een.if c|
|000035a0| 68 61 72 20 31 36 20 6f | 66 20 67 48 43 6f 70 74 |har 16 o|f gHCopt|
|000035b0| 69 6f 6e 73 20 69 73 20 | 31 20 74 68 65 6e 20 73 |ions is |1 then s|
|000035c0| 65 6e 64 20 48 43 69 6e | 69 74 20 74 6f 20 74 68 |end HCin|it to th|
|000035d0| 69 73 20 63 61 72 64 0d | 63 48 43 63 6f 6c 6f 72 |is card.|cHCcolor|
|000035e0| 69 7a 65 0d 69 66 20 6e | 6f 74 20 74 68 65 20 6c |ize.if n|ot the l|
|000035f0| 6f 63 6b 53 63 72 65 65 | 6e 20 74 68 65 6e 20 6c |ockScree|n then l|
|00003600| 6f 63 6b 20 73 63 72 65 | 65 6e 0d 65 6e 64 20 63 |ock scre|en.end c|
|00003610| 48 43 72 65 73 74 61 72 | 74 0d 0d 6f 6e 20 63 6c |HCrestar|t..on cl|
|00003620| 6f 73 65 44 6f 77 6e 43 | 48 43 0d 67 6c 6f 62 61 |oseDownC|HC.globa|
|00003630| 6c 20 67 48 43 4f 70 74 | 69 6f 6e 73 2c 20 67 48 |l gHCOpt|ions, gH|
|00003640| 43 75 73 65 72 0d 63 48 | 43 75 6e 43 6f 6c 6f 72 |Cuser.cH|CunColor|
|00003650| 69 7a 65 0d 63 48 43 64 | 69 73 70 6f 73 65 0d 69 |ize.cHCd|ispose.i|
|00003660| 66 20 63 68 61 72 20 31 | 34 20 6f 66 20 67 48 43 |f char 1|4 of gHC|
|00003670| 4f 70 74 69 6f 6e 73 20 | 69 73 20 31 20 2d 2d 20 |Options |is 1 -- |
|00003680| 75 6e 64 6f 20 64 62 43 | 6f 6c 6f 72 69 7a 65 48 |undo dbC|olorizeH|
|00003690| 43 0d 74 68 65 6e 20 69 | 66 20 74 68 65 20 73 74 |C.then i|f the st|
|000036a0| 61 63 6b 73 49 6e 55 73 | 65 20 63 6f 6e 74 61 69 |acksInUs|e contai|
|000036b0| 6e 73 20 22 43 6f 6c 6f | 72 69 7a 69 6e 67 20 48 |ns "Colo|rizing H|
|000036c0| 43 20 44 65 62 75 67 22 | 0d 74 68 65 6e 20 73 74 |C Debug"|.then st|
|000036d0| 6f 70 20 75 73 69 6e 67 | 20 73 74 61 63 6b 20 22 |op using| stack "|
|000036e0| 43 6f 6c 6f 72 69 7a 69 | 6e 67 20 48 43 20 44 65 |Colorizi|ng HC De|
|000036f0| 62 75 67 22 0d 73 74 6f | 72 65 53 74 61 74 65 0d |bug".sto|reState.|
|00003700| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 67 |put empt|y into g|
|00003710| 48 43 4f 70 74 69 6f 6e | 73 20 2d 2d 20 73 68 6f |HCOption|s -- sho|
|00003720| 77 20 77 65 20 61 72 65 | 20 75 6e 69 6e 69 74 69 |w we are| uniniti|
|00003730| 61 6c 69 73 65 64 0d 70 | 75 74 20 65 6d 70 74 79 |alised.p|ut empty|
|00003740| 20 69 6e 74 6f 20 67 48 | 43 75 73 65 72 0d 65 6e | into gH|Cuser.en|
|00003750| 64 20 63 6c 6f 73 65 44 | 6f 77 6e 43 48 43 0d 0d |d closeD|ownCHC..|
|00003760| 6f 6e 20 63 48 43 63 6c | 6f 73 65 0d 67 6c 6f 62 |on cHCcl|ose.glob|
|00003770| 61 6c 20 67 48 43 75 73 | 65 72 2c 20 67 48 43 6f |al gHCus|er, gHCo|
|00003780| 70 74 69 6f 6e 73 0d 69 | 66 20 67 48 43 6f 70 74 |ptions.i|f gHCopt|
|00003790| 69 6f 6e 73 20 69 73 20 | 65 6d 70 74 79 20 74 68 |ions is |empty th|
|000037a0| 65 6e 20 65 78 69 74 20 | 63 48 43 63 6c 6f 73 65 |en exit |cHCclose|
|000037b0| 20 2d 2d 20 75 6e 69 6e | 69 74 69 61 6c 69 73 65 | -- unin|itialise|
|000037c0| 64 0d 70 75 74 20 65 6d | 70 74 79 20 69 6e 74 6f |d.put em|pty into|
|000037d0| 20 67 48 43 75 73 65 72 | 20 2d 2d 20 64 6f 6e 27 | gHCuser| -- don'|
|000037e0| 74 20 73 61 76 65 0d 63 | 6c 6f 73 65 64 6f 77 6e |t save.c|losedown|
|000037f0| 43 48 43 0d 65 6e 64 20 | 63 48 43 63 6c 6f 73 65 |CHC.end |cHCclose|
|00003800| 0d 0d 6f 6e 20 63 48 43 | 6c 65 61 76 65 0d 67 6c |..on cHC|leave.gl|
|00003810| 6f 62 61 6c 20 67 48 43 | 6f 70 74 69 6f 6e 73 0d |obal gHC|options.|
|00003820| 69 66 20 67 48 43 6f 70 | 74 69 6f 6e 73 20 69 73 |if gHCop|tions is|
|00003830| 20 65 6d 70 74 79 20 74 | 68 65 6e 20 65 78 69 74 | empty t|hen exit|
|00003840| 20 63 48 43 6c 65 61 76 | 65 20 2d 2d 20 75 6e 69 | cHCleav|e -- uni|
|00003850| 6e 69 74 69 61 6c 69 73 | 65 64 0d 63 6c 6f 73 65 |nitialis|ed.close|
|00003860| 64 6f 77 6e 43 48 43 0d | 65 6e 64 20 63 48 43 6c |downCHC.|end cHCl|
|00003870| 65 61 76 65 0d 0d 6f 6e | 20 63 48 43 63 6f 6c 6f |eave..on| cHCcolo|
|00003880| 72 69 7a 65 20 2d 2d 20 | 63 61 6c 6c 65 64 20 74 |rize -- |called t|
|00003890| 6f 20 63 6f 6c 6f 75 72 | 20 61 20 67 69 76 65 6e |o colour| a given|
|000038a0| 20 63 61 72 64 0d 67 6c | 6f 62 61 6c 20 67 4f 4b | card.gl|obal gOK|
|000038b0| 54 6f 43 6f 6c 6f 72 69 | 7a 65 2c 20 67 48 43 6f |ToColori|ze, gHCo|
|000038c0| 70 74 69 6f 6e 73 2c 20 | 67 48 43 77 69 6e 64 6f |ptions, |gHCwindo|
|000038d0| 77 73 2c 20 67 48 43 65 | 66 66 65 63 74 73 0d 69 |ws, gHCe|ffects.i|
|000038e0| 66 20 67 48 43 6f 70 74 | 69 6f 6e 73 20 69 73 20 |f gHCopt|ions is |
|000038f0| 65 6d 70 74 79 20 74 68 | 65 6e 20 65 78 69 74 20 |empty th|en exit |
|00003900| 63 48 43 63 6f 6c 6f 72 | 69 7a 65 20 2d 2d 20 75 |cHCcolor|ize -- u|
|00003910| 6e 69 6e 69 74 69 61 6c | 69 73 65 64 21 0d 0d 69 |ninitial|ised!..i|
|00003920| 66 20 6e 6f 74 20 74 68 | 65 20 6c 6f 63 6b 53 63 |f not th|e lockSc|
|00003930| 72 65 65 6e 20 74 68 65 | 6e 20 6c 6f 63 6b 20 73 |reen the|n lock s|
|00003940| 63 72 65 65 6e 0d 0d 69 | 66 20 63 68 61 72 20 31 |creen..i|f char 1|
|00003950| 35 20 6f 66 20 67 48 43 | 6f 70 74 69 6f 6e 73 20 |5 of gHC|options |
|00003960| 69 73 20 31 20 74 68 65 | 6e 20 73 65 6e 64 20 48 |is 1 the|n send H|
|00003970| 43 70 72 65 47 72 61 70 | 68 69 63 20 74 6f 20 63 |CpreGrap|hic to c|
|00003980| 64 0d 69 66 20 67 4f 4b | 54 6f 43 6f 6c 6f 72 69 |d.if gOK|ToColori|
|00003990| 7a 65 20 69 73 20 6e 6f | 74 20 65 6d 70 74 79 20 |ze is no|t empty |
|000039a0| 74 68 65 6e 0d 69 66 20 | 63 68 61 72 20 33 20 6f |then.if |char 3 o|
|000039b0| 66 20 67 48 43 6f 70 74 | 69 6f 6e 73 20 69 73 20 |f gHCopt|ions is |
|000039c0| 31 20 74 68 65 6e 0d 73 | 65 6e 64 20 48 43 62 57 |1 then.s|end HCbW|
|000039d0| 68 69 74 65 20 74 6f 20 | 63 64 0d 65 6e 64 20 69 |hite to |cd.end i|
|000039e0| 66 0d 65 6c 73 65 0d 69 | 66 20 63 68 61 72 20 31 |f.else.i|f char 1|
|000039f0| 20 6f 66 20 67 48 43 6f | 70 74 69 6f 6e 73 20 69 | of gHCo|ptions i|
|00003a00| 73 20 31 20 74 68 65 6e | 20 73 65 6e 64 20 48 43 |s 1 then| send HC|
|00003a10| 63 6f 6c 6f 72 69 7a 65 | 20 74 6f 20 63 64 0d 65 |colorize| to cd.e|
|00003a20| 6c 73 65 20 63 6f 6c 6f | 72 69 7a 65 48 43 20 22 |lse colo|rizeHC "|
|00003a30| 45 72 61 73 65 22 20 2d | 2d 20 64 65 66 61 75 6c |Erase" -|- defaul|
|00003a40| 74 20 48 43 63 6f 6c 6f | 72 69 7a 65 0d 65 6e 64 |t HCcolo|rize.end|
|00003a50| 20 69 66 0d 69 66 20 63 | 68 61 72 20 35 20 6f 66 | if.if c|har 5 of|
|00003a60| 20 67 48 43 6f 70 74 69 | 6f 6e 73 20 69 73 20 31 | gHCopti|ons is 1|
|00003a70| 20 74 68 65 6e 20 73 65 | 6e 64 20 48 43 67 72 61 | then se|nd HCgra|
|00003a80| 70 68 69 63 20 74 6f 20 | 63 64 0d 0d 67 65 74 20 |phic to |cd..get |
|00003a90| 67 48 43 65 66 66 65 63 | 74 73 20 2d 2d 20 67 65 |gHCeffec|ts -- ge|
|00003aa0| 74 20 6e 6f 77 20 2d 20 | 74 68 61 74 20 77 61 79 |t now - |that way|
|00003ab0| 20 77 65 20 64 6f 6e 27 | 74 20 72 65 70 65 61 74 | we don'|t repeat|
|00003ac0| 20 65 72 72 6f 72 73 0d | 70 75 74 20 65 6d 70 74 | errors.|put empt|
|00003ad0| 79 20 69 6e 74 6f 20 67 | 48 43 65 66 66 65 63 74 |y into g|HCeffect|
|00003ae0| 73 0d 69 66 20 69 74 20 | 69 73 20 65 6d 70 74 79 |s.if it |is empty|
|00003af0| 20 74 68 65 6e 20 75 6e | 6c 6f 63 6b 20 73 63 72 | then un|lock scr|
|00003b00| 65 65 6e 0d 65 6c 73 65 | 20 64 6f 20 22 75 6e 6c |een.else| do "unl|
|00003b10| 6f 63 6b 20 73 63 72 65 | 65 6e 20 77 69 74 68 22 |ock scre|en with"|
|00003b20| 20 26 26 20 69 74 0d 0d | 69 66 20 28 63 68 61 72 | && it..|if (char|
|00003b30| 20 31 30 20 6f 66 20 67 | 48 43 6f 70 74 69 6f 6e | 10 of g|HCoption|
|00003b40| 73 20 69 73 20 31 29 20 | 61 6e 64 20 67 48 43 77 |s is 1) |and gHCw|
|00003b50| 69 6e 64 6f 77 73 20 69 | 73 20 6e 6f 74 20 65 6d |indows i|s not em|
|00003b60| 70 74 79 0d 74 68 65 6e | 20 63 48 43 73 68 6f 77 |pty.then| cHCshow|
|00003b70| 57 69 6e 64 6f 77 73 0d | 2d 2d 20 72 65 61 6c 6c |Windows.|-- reall|
|00003b80| 79 20 73 68 6f 75 6c 64 | 20 6e 6f 74 20 63 61 6c |y should| not cal|
|00003b90| 6c 20 75 6e 74 69 6c 20 | 75 6e 6c 6f 63 6b 20 74 |l until |unlock t|
|00003ba0| 61 6b 65 73 20 70 6c 61 | 63 65 2c 20 62 75 74 20 |akes pla|ce, but |
|00003bb0| 77 6f 75 6c 64 20 72 65 | 71 75 69 72 65 0d 2d 2d |would re|quire.--|
|00003bc0| 20 64 65 6c 61 79 65 64 | 20 61 63 74 69 6f 6e 0d | delayed| action.|
|00003bd0| 65 6e 64 20 63 48 43 63 | 6f 6c 6f 72 69 7a 65 0d |end cHCc|olorize.|
|00003be0| 0d 6f 6e 20 63 48 43 75 | 6e 43 6f 6c 6f 72 69 7a |.on cHCu|nColoriz|
|00003bf0| 65 0d 67 6c 6f 62 61 6c | 20 67 4f 4b 54 6f 43 6f |e.global| gOKToCo|
|00003c00| 6c 6f 72 69 7a 65 2c 20 | 67 48 43 6f 70 74 69 6f |lorize, |gHCoptio|
|00003c10| 6e 73 2c 20 67 48 43 77 | 69 6e 64 6f 77 73 0d 69 |ns, gHCw|indows.i|
|00003c20| 66 20 67 48 43 6f 70 74 | 69 6f 6e 73 20 69 73 20 |f gHCopt|ions is |
|00003c30| 65 6d 70 74 79 20 74 68 | 65 6e 20 65 78 69 74 20 |empty th|en exit |
|00003c40| 63 48 43 75 6e 43 6f 6c | 6f 72 69 7a 65 20 2d 2d |cHCunCol|orize --|
|00003c50| 20 75 6e 69 6e 69 74 69 | 61 6c 69 73 65 64 2e 0d | uniniti|alised..|
|00003c60| 69 66 20 67 4f 4b 54 6f | 43 6f 6c 6f 72 69 7a 65 |if gOKTo|Colorize|
|00003c70| 20 69 73 20 6e 6f 74 20 | 65 6d 70 74 79 20 74 68 | is not |empty th|
|00003c80| 65 6e 0d 69 66 20 63 68 | 61 72 20 34 20 6f 66 20 |en.if ch|ar 4 of |
|00003c90| 67 48 43 6f 70 74 69 6f | 6e 73 20 69 73 20 31 20 |gHCoptio|ns is 1 |
|00003ca0| 74 68 65 6e 20 73 65 6e | 64 20 48 43 75 6e 42 57 |then sen|d HCunBW|
|00003cb0| 68 69 74 65 20 74 6f 20 | 63 64 0d 65 6c 73 65 20 |hite to |cd.else |
|00003cc0| 2d 2d 20 64 65 66 61 75 | 6c 74 20 48 43 75 6e 42 |-- defau|lt HCunB|
|00003cd0| 57 68 69 74 65 0d 69 66 | 20 63 68 61 72 20 31 31 |White.if| char 11|
|00003ce0| 20 6f 66 20 67 48 43 6f | 70 74 69 6f 6e 73 20 69 | of gHCo|ptions i|
|00003cf0| 73 20 6e 6f 74 20 31 20 | 74 68 65 6e 20 73 65 74 |s not 1 |then set|
|00003d00| 20 74 68 65 20 63 75 72 | 73 6f 72 20 74 6f 20 77 | the cur|sor to w|
|00003d10| 61 74 63 68 0d 69 66 20 | 6e 6f 74 20 74 68 65 20 |atch.if |not the |
|00003d20| 6c 6f 63 6b 53 63 72 65 | 65 6e 20 74 68 65 6e 20 |lockScre|en then |
|00003d30| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 20 2d 2d 20 69 |lock scr|een -- i|
|00003d40| 6e 20 63 61 73 65 20 61 | 6c 72 65 61 64 79 20 73 |n case a|lready s|
|00003d50| 65 74 0d 65 6e 64 20 69 | 66 0d 65 6c 73 65 0d 69 |et.end i|f.else.i|
|00003d60| 66 20 63 68 61 72 20 32 | 20 6f 66 20 67 48 43 6f |f char 2| of gHCo|
|00003d70| 70 74 69 6f 6e 73 20 69 | 73 20 31 20 74 68 65 6e |ptions i|s 1 then|
|00003d80| 20 73 65 6e 64 20 48 43 | 75 6e 43 6f 6c 6f 72 69 | send HC|unColori|
|00003d90| 7a 65 20 74 6f 20 63 64 | 0d 65 6c 73 65 20 2d 2d |ze to cd|.else --|
|00003da0| 20 64 65 66 61 75 6c 74 | 20 48 43 75 6e 43 6f 6c | default| HCunCol|
|00003db0| 6f 72 69 7a 65 0d 69 66 | 20 63 68 61 72 20 31 31 |orize.if| char 11|
|00003dc0| 20 6f 66 20 67 48 43 6f | 70 74 69 6f 6e 73 20 69 | of gHCo|ptions i|
|00003dd0| 73 20 6e 6f 74 20 31 20 | 74 68 65 6e 20 73 65 74 |s not 1 |then set|
|00003de0| 20 74 68 65 20 63 75 72 | 73 6f 72 20 74 6f 20 77 | the cur|sor to w|
|00003df0| 61 74 63 68 0d 69 66 20 | 6e 6f 74 20 74 68 65 20 |atch.if |not the |
|00003e00| 6c 6f 63 6b 53 63 72 65 | 65 6e 20 74 68 65 6e 20 |lockScre|en then |
|00003e10| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 20 2d 2d 20 64 |lock scr|een -- d|
|00003e20| 69 74 74 6f 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |itto.end| if.end |
|00003e30| 69 66 0d 69 66 20 63 68 | 61 72 20 36 20 6f 66 20 |if.if ch|ar 6 of |
|00003e40| 67 48 43 6f 70 74 69 6f | 6e 73 20 69 73 20 31 20 |gHCoptio|ns is 1 |
|00003e50| 74 68 65 6e 20 73 65 6e | 64 20 48 43 75 6e 47 72 |then sen|d HCunGr|
|00003e60| 61 70 68 69 63 20 74 6f | 20 63 64 0d 69 66 20 28 |aphic to| cd.if (|
|00003e70| 63 68 61 72 20 31 30 20 | 6f 66 20 67 48 43 6f 70 |char 10 |of gHCop|
|00003e80| 74 69 6f 6e 73 20 69 73 | 20 31 29 20 61 6e 64 20 |tions is| 1) and |
|00003e90| 67 48 43 77 69 6e 64 6f | 77 73 20 69 73 20 6e 6f |gHCwindo|ws is no|
|00003ea0| 74 20 65 6d 70 74 79 0d | 74 68 65 6e 20 63 48 43 |t empty.|then cHC|
|00003eb0| 6b 69 6c 6c 57 69 6e 64 | 6f 77 73 0d 65 6e 64 20 |killWind|ows.end |
|00003ec0| 63 48 43 75 6e 43 6f 6c | 6f 72 69 7a 65 0d 0d 6f |cHCunCol|orize..o|
|00003ed0| 6e 20 63 48 43 72 65 43 | 6f 6c 6f 72 69 7a 65 0d |n cHCreC|olorize.|
|00003ee0| 63 48 43 75 6e 43 6f 6c | 6f 72 69 7a 65 0d 63 48 |cHCunCol|orize.cH|
|00003ef0| 43 63 6f 6c 6f 72 69 7a | 65 0d 65 6e 64 20 63 48 |Ccoloriz|e.end cH|
|00003f00| 43 72 65 43 6f 6c 6f 72 | 69 7a 65 0d 0d 6f 6e 20 |CreColor|ize..on |
|00003f10| 63 48 43 73 68 6f 77 43 | 6f 6c 6f 72 20 73 69 6e |cHCshowC|olor sin|
|00003f20| 67 6c 65 0d 69 66 20 73 | 69 6e 67 6c 65 20 69 73 |gle.if s|ingle is|
|00003f30| 20 54 72 75 65 20 74 68 | 65 6e 20 2d 2d 20 6a 75 | True th|en -- ju|
|00003f40| 73 74 20 65 6e 73 75 72 | 65 20 77 69 6c 6c 20 75 |st ensur|e will u|
|00003f50| 70 64 61 74 65 0d 69 66 | 20 6e 6f 74 20 74 68 65 |pdate.if| not the|
|00003f60| 20 6c 6f 63 6b 53 63 72 | 65 65 6e 20 74 68 65 6e | lockScr|een then|
|00003f70| 0d 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0d 75 6e 6c |.lock sc|reen.unl|
|00003f80| 6f 63 6b 20 73 63 72 65 | 65 6e 0d 65 6e 64 20 69 |ock scre|en.end i|
|00003f90| 66 0d 65 6c 73 65 20 69 | 66 20 73 69 6e 67 6c 65 |f.else i|f single|
|00003fa0| 20 69 73 20 59 65 73 20 | 74 68 65 6e 20 2d 2d 20 | is Yes |then -- |
|00003fb0| 73 69 6e 67 6c 65 20 75 | 6e 6c 6f 63 6b 20 28 61 |single u|nlock (a|
|00003fc0| 73 73 75 6d 65 20 70 72 | 65 76 20 6c 6f 63 6b 65 |ssume pr|ev locke|
|00003fd0| 64 29 0d 75 6e 6c 6f 63 | 6b 20 73 63 72 65 65 6e |d).unloc|k screen|
|00003fe0| 0d 65 6c 73 65 0d 67 6c | 6f 62 61 6c 20 67 4f 6b |.else.gl|obal gOk|
|00003ff0| 54 6f 43 6f 6c 6f 72 69 | 7a 65 0d 69 66 20 67 4f |ToColori|ze.if gO|
|00004000| 6b 54 6f 43 6f 6c 6f 72 | 69 7a 65 20 69 73 20 65 |kToColor|ize is e|
|00004010| 6d 70 74 79 20 74 68 65 | 6e 0d 69 66 20 6e 6f 74 |mpty the|n.if not|
|00004020| 20 74 68 65 20 6c 6f 63 | 6b 53 63 72 65 65 6e 20 | the loc|kScreen |
|00004030| 74 68 65 6e 20 6c 6f 63 | 6b 20 73 63 72 65 65 6e |then loc|k screen|
|00004040| 0d 75 6e 6c 6f 63 6b 20 | 73 63 72 65 65 6e 20 2d |.unlock |screen -|
|00004050| 2d 20 77 65 20 61 6c 77 | 61 79 73 20 6e 65 65 64 |- we alw|ays need|
|00004060| 20 74 6f 20 64 6f 20 6f | 6e 63 65 2c 20 73 61 76 | to do o|nce, sav|
|00004070| 65 73 20 61 20 74 65 73 | 74 0d 65 6e 64 20 69 66 |es a tes|t.end if|
|00004080| 0d 72 65 70 65 61 74 20 | 77 68 69 6c 65 20 74 68 |.repeat |while th|
|00004090| 65 20 6c 6f 63 6b 53 63 | 72 65 65 6e 0d 75 6e 6c |e lockSc|reen.unl|
|000040a0| 6f 63 6b 20 73 63 72 65 | 65 6e 0d 65 6e 64 20 72 |ock scre|en.end r|
|000040b0| 65 70 65 61 74 0d 65 6e | 64 20 69 66 0d 65 6e 64 |epeat.en|d if.end|
|000040c0| 20 63 48 43 73 68 6f 77 | 43 6f 6c 6f 72 0d 0d 6f | cHCshow|Color..o|
|000040d0| 6e 20 63 48 43 62 72 65 | 61 6b 53 63 72 65 65 6e |n cHCbre|akScreen|
|000040e0| 4c 6f 63 6b 0d 67 6c 6f | 62 61 6c 20 67 4f 6b 54 |Lock.glo|bal gOkT|
|000040f0| 6f 43 6f 6c 6f 72 69 7a | 65 2c 20 67 48 43 65 66 |oColoriz|e, gHCef|
|00004100| 66 65 63 74 73 2c 20 67 | 48 43 6f 70 74 69 6f 6e |fects, g|HCoption|
|00004110| 73 0d 67 65 74 20 67 48 | 43 65 66 66 65 63 74 73 |s.get gH|Ceffects|
|00004120| 20 2d 2d 20 67 65 74 20 | 6e 6f 77 20 69 6e 20 63 | -- get |now in c|
|00004130| 61 73 65 20 6f 66 20 65 | 72 72 6f 72 0d 70 75 74 |ase of e|rror.put|
|00004140| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 67 48 43 65 | empty i|nto gHCe|
|00004150| 66 66 65 63 74 73 0d 0d | 69 66 20 69 74 20 69 73 |ffects..|if it is|
|00004160| 20 65 6d 70 74 79 20 74 | 68 65 6e 0d 72 65 70 65 | empty t|hen.repe|
|00004170| 61 74 20 77 68 69 6c 65 | 20 74 68 65 20 6c 6f 63 |at while| the loc|
|00004180| 6b 53 63 72 65 65 6e 0d | 75 6e 6c 6f 63 6b 20 73 |kScreen.|unlock s|
|00004190| 63 72 65 65 6e 0d 65 6e | 64 20 72 65 70 65 61 74 |creen.en|d repeat|
|000041a0| 0d 65 6c 73 65 0d 72 65 | 70 65 61 74 20 77 68 69 |.else.re|peat whi|
|000041b0| 6c 65 20 74 68 65 20 6c | 6f 63 6b 53 63 72 65 65 |le the l|ockScree|
|000041c0| 6e 0d 64 6f 20 22 75 6e | 6c 6f 63 6b 20 73 63 72 |n.do "un|lock scr|
|000041d0| 65 65 6e 20 77 69 74 68 | 22 20 26 26 20 69 74 0d |een with|" && it.|
|000041e0| 65 6e 64 20 72 65 70 65 | 61 74 0d 65 6e 64 20 69 |end repe|at.end i|
|000041f0| 66 0d 65 6e 64 20 63 48 | 43 62 72 65 61 6b 53 63 |f.end cH|CbreakSc|
|00004200| 72 65 65 6e 4c 6f 63 6b | 0d 0d 6f 6e 20 63 48 43 |reenLock|..on cHC|
|00004210| 66 6f 72 63 65 53 63 72 | 65 65 6e 4c 6f 63 6b 0d |forceScr|eenLock.|
|00004220| 63 48 43 62 72 65 61 6b | 53 63 72 65 65 6e 4c 6f |cHCbreak|ScreenLo|
|00004230| 63 6b 0d 65 6e 64 20 63 | 48 43 66 6f 72 63 65 53 |ck.end c|HCforceS|
|00004240| 63 72 65 65 6e 4c 6f 63 | 6b 0d 0d 6f 6e 20 63 48 |creenLoc|k..on cH|
|00004250| 43 6c 6f 63 6b 20 52 65 | 63 65 6e 74 54 6f 6f 0d |Clock Re|centToo.|
|00004260| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 73 65 74 20 |lock scr|een.set |
|00004270| 6c 6f 63 6b 4d 65 73 73 | 61 67 65 73 20 74 6f 20 |lockMess|ages to |
|00004280| 54 72 75 65 0d 69 66 20 | 52 65 63 65 6e 74 54 6f |True.if |RecentTo|
|00004290| 6f 20 69 73 20 6e 6f 74 | 20 46 61 6c 73 65 20 74 |o is not| False t|
|000042a0| 68 65 6e 20 73 65 74 20 | 6c 6f 63 6b 52 65 63 65 |hen set |lockRece|
|000042b0| 6e 74 20 74 6f 20 54 72 | 75 65 0d 65 6e 64 20 63 |nt to Tr|ue.end c|
|000042c0| 48 43 6c 6f 63 6b 0d 0d | 6f 6e 20 63 48 43 75 6e |HClock..|on cHCun|
|000042d0| 4c 6f 63 6b 20 52 65 63 | 65 6e 74 54 6f 6f 0d 73 |Lock Rec|entToo.s|
|000042e0| 65 74 20 6c 6f 63 6b 52 | 65 63 65 6e 74 20 74 6f |et lockR|ecent to|
|000042f0| 20 46 61 6c 73 65 0d 69 | 66 20 52 65 63 65 6e 74 | False.i|f Recent|
|00004300| 54 6f 6f 20 69 73 20 6e | 6f 74 20 46 61 6c 73 65 |Too is n|ot False|
|00004310| 20 74 68 65 6e 20 73 65 | 74 20 6c 6f 63 6b 52 65 | then se|t lockRe|
|00004320| 63 65 6e 74 20 74 6f 20 | 46 61 6c 73 65 0d 75 6e |cent to |False.un|
|00004330| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 65 6e 64 20 |lock scr|een.end |
|00004340| 63 48 43 75 6e 4c 6f 63 | 6b 0d 0d 6f 6e 20 63 48 |cHCunLoc|k..on cH|
|00004350| 43 76 69 73 75 61 6c 20 | 63 6f 6d 6d 61 6e 64 2c |Cvisual |command,|
|00004360| 20 64 6f 6e 74 52 65 70 | 6c 61 63 65 0d 67 6c 6f | dontRep|lace.glo|
|00004370| 62 61 6c 20 67 4f 6b 54 | 6f 43 6f 6c 6f 72 69 7a |bal gOkT|oColoriz|
|00004380| 65 2c 20 67 48 43 6f 70 | 74 69 6f 6e 73 2c 20 67 |e, gHCop|tions, g|
|00004390| 48 43 65 66 66 65 63 74 | 73 0d 69 66 20 63 68 61 |HCeffect|s.if cha|
|000043a0| 72 20 31 32 20 6f 66 20 | 67 48 43 6f 70 74 69 6f |r 12 of |gHCoptio|
|000043b0| 6e 73 20 3d 20 31 20 c2 | 20 2d 2d 20 6e 6f 56 69 |ns = 1 .| -- noVi|
|000043c0| 73 75 61 6c 73 0d 6f 72 | 20 63 68 61 72 20 31 33 |suals.or| char 13|
|000043d0| 20 6f 66 20 67 48 43 6f | 70 74 69 6f 6e 73 20 3d | of gHCo|ptions =|
|000043e0| 20 31 20 61 6e 64 20 67 | 4f 6b 54 6f 43 6f 6c 6f | 1 and g|OkToColo|
|000043f0| 72 69 7a 65 20 69 73 20 | 65 6d 70 74 79 20 74 68 |rize is |empty th|
|00004400| 65 6e 20 2d 2d 20 69 66 | 43 6f 6c 6f 72 0d 70 75 |en -- if|Color.pu|
|00004410| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 67 48 43 |t empty |into gHC|
|00004420| 65 66 66 65 63 74 73 0d | 65 78 69 74 20 63 48 43 |effects.|exit cHC|
|00004430| 76 69 73 75 61 6c 0d 65 | 6e 64 20 69 66 0d 0d 69 |visual.e|nd if..i|
|00004440| 66 20 64 6f 6e 74 52 65 | 70 6c 61 63 65 20 69 73 |f dontRe|place is|
|00004450| 20 54 72 75 65 20 61 6e | 64 20 67 48 43 65 66 66 | True an|d gHCeff|
|00004460| 65 63 74 73 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |ects is |not empt|
|00004470| 79 20 74 68 65 6e 20 65 | 78 69 74 20 63 48 43 76 |y then e|xit cHCv|
|00004480| 69 73 75 61 6c 0d 70 75 | 74 20 63 6f 6d 6d 61 6e |isual.pu|t comman|
|00004490| 64 20 69 6e 74 6f 20 67 | 48 43 65 66 66 65 63 74 |d into g|HCeffect|
|000044a0| 73 20 2d 2d 20 73 74 6f | 72 65 20 66 6f 72 20 6c |s -- sto|re for l|
|000044b0| 61 74 65 72 20 75 73 65 | 0d 65 6e 64 20 63 48 43 |ater use|.end cHC|
|000044c0| 76 69 73 75 61 6c 0d 0d | 2d 2d 20 64 65 66 61 75 |visual..|-- defau|
|000044d0| 6c 74 20 68 61 6e 64 6c | 65 72 73 20 2d 20 75 73 |lt handl|ers - us|
|000044e0| 75 61 6c 6c 79 20 70 6c | 61 63 65 20 69 6e 20 63 |ually pl|ace in c|
|000044f0| 61 72 64 73 20 74 6f 20 | 64 72 61 77 20 63 6f 6c |ards to |draw col|
|00004500| 6f 75 72 20 65 74 63 2e | 0d 2d 2d 20 5b 63 48 63 |our etc.|.-- [cHc|
|00004510| 63 6f 6c 6f 72 69 7a 65 | 2c 20 63 48 43 75 6e 43 |colorize|, cHCunC|
|00004520| 6f 6c 6f 72 69 7a 65 20 | 65 74 63 20 63 6f 6e 74 |olorize |etc cont|
|00004530| 61 69 6e 20 65 71 75 69 | 76 61 6c 65 6e 74 73 2e |ain equi|valents.|
|00004540| 5d 0d 0d 6f 6e 20 48 43 | 69 6e 69 74 0d 65 6e 64 |]..on HC|init.end|
|00004550| 20 48 43 69 6e 69 74 0d | 0d 6f 6e 20 48 43 63 6f | HCinit.|.on HCco|
|00004560| 6c 6f 72 69 7a 65 20 2d | 2d 20 64 65 66 61 75 6c |lorize -|- defaul|
|00004570| 74 20 69 73 20 65 72 61 | 73 65 20 63 6f 6c 6f 75 |t is era|se colou|
|00004580| 72 20 73 63 72 65 65 6e | 0d 43 6f 6c 6f 72 69 7a |r screen|.Coloriz|
|00004590| 65 48 43 20 22 45 72 61 | 73 65 22 0d 65 6e 64 20 |eHC "Era|se".end |
|000045a0| 48 43 63 6f 6c 6f 72 69 | 7a 65 0d 0d 6f 6e 20 48 |HCcolori|ze..on H|
|000045b0| 43 75 6e 43 6f 6c 6f 72 | 69 7a 65 20 2d 2d 20 73 |CunColor|ize -- s|
|000045c0| 65 74 20 63 75 72 73 6f | 72 20 74 6f 20 73 68 6f |et curso|r to sho|
|000045d0| 77 20 61 63 74 69 6f 6e | 2c 20 61 6e 64 20 6c 6f |w action|, and lo|
|000045e0| 63 6b 20 73 63 72 65 65 | 6e 0d 67 6c 6f 62 61 6c |ck scree|n.global|
|000045f0| 20 67 48 43 4f 70 74 69 | 6f 6e 73 0d 69 66 20 63 | gHCOpti|ons.if c|
|00004600| 68 61 72 20 31 31 20 6f | 66 20 67 48 43 6f 70 74 |har 11 o|f gHCopt|
|00004610| 69 6f 6e 73 20 69 73 20 | 6e 6f 74 20 31 20 74 68 |ions is |not 1 th|
|00004620| 65 6e 20 73 65 74 20 74 | 68 65 20 63 75 72 73 6f |en set t|he curso|
|00004630| 72 20 74 6f 20 77 61 74 | 63 68 0d 69 66 20 6e 6f |r to wat|ch.if no|
|00004640| 74 20 74 68 65 20 6c 6f | 63 6b 53 63 72 65 65 6e |t the lo|ckScreen|
|00004650| 20 74 68 65 6e 20 6c 6f | 63 6b 20 73 63 72 65 65 | then lo|ck scree|
|00004660| 6e 0d 65 6e 64 20 48 43 | 75 6e 43 6f 6c 6f 72 69 |n.end HC|unColori|
|00004670| 7a 65 0d 0d 6f 6e 20 48 | 43 62 57 68 69 74 65 0d |ze..on H|CbWhite.|
|00004680| 65 6e 64 20 48 43 62 57 | 68 69 74 65 0d 0d 6f 6e |end HCbW|hite..on|
|00004690| 20 6e 61 76 0d 2d 2d 20 | 52 65 71 75 69 72 65 73 | nav.-- |Requires|
|000046a0| 20 58 43 4d 44 3a 20 70 | 61 6c 65 74 74 65 20 22 | XCMD: p|alette "|
|000046b0| 4e 61 76 69 67 61 74 6f | 72 22 0d 70 61 6c 65 74 |Navigato|r".palet|
|000046c0| 74 65 20 22 4e 61 76 69 | 67 61 74 6f 72 22 20 2d |te "Navi|gator" -|
|000046d0| 2d 20 c6 20 74 79 70 65 | 20 22 6e 61 76 22 20 69 |- . type| "nav" i|
|000046e0| 6e 74 6f 20 6d 65 73 73 | 61 67 65 20 62 6f 78 0d |nto mess|age box.|
|000046f0| 65 6e 64 20 6e 61 76 0d | 0d 6f 6e 20 6d 77 0d 2d |end nav.|.on mw.-|
|00004700| 2d 20 52 65 71 75 69 72 | 65 73 20 58 57 69 6e 64 |- Requir|es XWind|
|00004710| 6f 77 3a 20 4d 65 73 73 | 61 67 65 20 57 61 74 63 |ow: Mess|age Watc|
|00004720| 68 65 72 0d 73 68 6f 77 | 20 77 69 6e 64 6f 77 20 |her.show| window |
|00004730| 22 4d 65 73 73 61 67 65 | 20 57 61 74 63 68 65 72 |"Message| Watcher|
|00004740| 22 20 2d 2d 20 c6 20 74 | 79 70 65 20 22 6d 77 22 |" -- . t|ype "mw"|
|00004750| 20 69 6e 74 6f 20 6d 65 | 73 73 61 67 65 20 62 6f | into me|ssage bo|
|00004760| 78 0d 65 6e 64 20 6d 77 | 0d 0d 6f 6e 20 76 77 0d |x.end mw|..on vw.|
|00004770| 2d 2d 20 52 65 71 75 69 | 72 65 73 20 58 57 69 6e |-- Requi|res XWin|
|00004780| 64 6f 77 3a 20 56 61 72 | 69 61 62 6c 65 20 57 61 |dow: Var|iable Wa|
|00004790| 74 63 68 65 72 0d 73 68 | 6f 77 20 77 69 6e 64 6f |tcher.sh|ow windo|
|000047a0| 77 20 22 56 61 72 69 61 | 62 6c 65 20 57 61 74 63 |w "Varia|ble Watc|
|000047b0| 68 65 72 22 20 2d 2d 20 | c6 20 74 79 70 65 20 22 |her" -- |. type "|
|000047c0| 76 77 22 20 69 6e 74 6f | 20 6d 65 73 73 61 67 65 |vw" into| message|
|000047d0| 20 62 6f 78 0d 65 6e 64 | 20 76 77 0d 0d 6f 6e 20 | box.end| vw..on |
|000047e0| 78 79 0d 2d 2d 20 c6 20 | 74 79 70 65 20 22 78 79 |xy.-- . |type "xy|
|000047f0| 22 20 69 6e 74 6f 20 6d | 65 73 73 61 67 65 20 62 |" into m|essage b|
|00004800| 6f 78 20 74 6f 20 6f 62 | 74 61 69 6e 20 6d 6f 75 |ox to ob|tain mou|
|00004810| 73 65 20 63 6f 6f 72 64 | 69 6e 61 74 65 73 0d 73 |se coord|inates.s|
|00004820| 65 74 20 63 75 72 73 6f | 72 20 74 6f 20 63 72 6f |et curso|r to cro|
|00004830| 73 73 0d 72 65 70 65 61 | 74 20 75 6e 74 69 6c 20 |ss.repea|t until |
|00004840| 74 68 65 20 6d 6f 75 73 | 65 43 6c 69 63 6b 0d 70 |the mous|eClick.p|
|00004850| 75 74 20 74 68 65 20 6d | 6f 75 73 65 4c 6f 63 20 |ut the m|ouseLoc |
|00004860| 26 26 20 22 20 20 68 6f | 72 7a 3a 22 20 26 20 74 |&& " ho|rz:" & t|
|00004870| 68 65 20 6d 6f 75 73 65 | 48 20 26 26 20 22 20 20 |he mouse|H && " |
|00004880| 76 65 72 74 3a 22 20 26 | 20 74 68 65 20 6d 6f 75 |vert:" &| the mou|
|00004890| 73 65 56 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 65 |seV.end |repeat.e|
|000048a0| 6e 64 20 78 79 0d 00 65 | 20 6d 6f 75 73 65 4c 6f |nd xy..e| mouseLo|
|000048b0| 63 20 26 26 20 22 20 20 | 68 6f 72 7a 3a 22 20 26 |c && " |horz:" &|
|000048c0| 20 74 68 65 20 6d 6f 75 | 73 65 48 20 26 26 20 22 | the mou|seH && "|
|000048d0| 20 20 76 65 72 74 3a 22 | 20 26 20 74 68 65 20 6d | vert:"| & the m|
|000048e0| 6f 75 73 65 56 0d 65 6e | 64 20 72 65 70 65 61 74 |ouseV.en|d repeat|
|000048f0| 0d 65 6e 64 20 78 79 0d | 00 0d 65 6e 64 20 6e 61 |.end xy.|..end na|
|00004900| 76 0d 0d 6f 6e 20 6d 77 | 0d 2d 2d 20 52 65 71 75 |v..on mw|.-- Requ|
|00004910| 69 72 65 73 20 58 57 69 | 6e 64 6f 77 3a 20 4d 65 |ires XWi|ndow: Me|
|00004920| 73 73 61 67 65 20 57 61 | 74 63 68 65 72 0d 73 68 |ssage Wa|tcher.sh|
|00004930| 6f 77 20 77 69 6e 64 6f | 77 20 22 4d 65 73 73 61 |ow windo|w "Messa|
|00004940| 67 65 20 57 61 74 63 68 | 65 72 22 20 2d 2d 20 c6 |ge Watch|er" -- .|
|00004950| 20 74 79 70 65 20 22 6d | 77 22 20 69 6e 74 6f 20 | type "m|w" into |
|00004960| 6d 65 73 73 61 67 65 20 | 62 6f 78 0d 65 6e 64 20 |message |box.end |
|00004970| 6d 77 0d 0d 6f 6e 20 76 | 77 0d 2d 2d 20 52 65 71 |mw..on v|w.-- Req|
|00004980| 75 69 72 65 73 20 58 57 | 69 6e 64 6f 77 3a 20 56 |uires XW|indow: V|
|00004990| 61 72 69 61 62 6c 65 20 | 57 61 74 63 68 65 72 0d |ariable |Watcher.|
|000049a0| 73 68 6f 77 20 77 69 6e | 64 6f 77 20 22 56 61 72 |show win|dow "Var|
|000049b0| 69 61 62 6c 65 20 57 61 | 74 63 68 65 72 22 20 2d |iable Wa|tcher" -|
|000049c0| 2d 20 c6 20 74 79 70 65 | 20 22 76 77 22 20 69 6e |- . type| "vw" in|
|000049d0| 74 6f 20 6d 65 73 73 61 | 67 65 20 62 6f 78 0d 65 |to messa|ge box.e|
|000049e0| 6e 64 20 76 77 0d 0d 6f | 6e 20 78 79 0d 2d 2d 20 |nd vw..o|n xy.-- |
|000049f0| c6 20 74 79 70 65 20 22 | 78 79 22 20 69 6e 74 6f |. type "|xy" into|
|00004a00| 20 6d 65 73 73 61 67 65 | 20 62 6f 78 20 74 6f 20 | message| box to |
|00004a10| 6f 62 74 61 69 6e 20 6d | 6f 75 73 65 20 63 6f 6f |obtain m|ouse coo|
|00004a20| 72 64 69 6e 61 74 65 73 | 0d 73 65 74 20 63 75 72 |rdinates|.set cur|
|00004a30| 73 6f 72 20 74 6f 20 63 | 72 6f 73 73 0d 72 65 70 |sor to c|ross.rep|
|00004a40| 65 61 74 20 75 6e 74 69 | 6c 20 74 68 65 20 6d 6f |eat unti|l the mo|
|00004a50| 75 73 65 43 6c 69 63 6b | 0d 70 75 74 20 74 68 65 |useClick|.put the|
|00004a60| 20 6d 6f 75 73 65 4c 6f | 63 20 26 26 20 22 20 20 | mouseLo|c && " |
|00004a70| 68 6f 72 7a 3a 22 20 26 | 20 74 68 65 20 6d 6f 75 |horz:" &| the mou|
|00004a80| 73 65 48 20 26 26 20 22 | 20 20 76 65 72 74 3a 22 |seH && "| vert:"|
|00004a90| 20 26 20 74 68 65 20 6d | 6f 75 73 65 56 0d 65 6e | & the m|ouseV.en|
|00004aa0| 64 20 72 65 70 65 61 74 | 0d 65 6e 64 20 78 79 0d |d repeat|.end xy.|
|00004ab0| 00 0d 65 6e 64 20 78 79 | 0d 00 00 69 74 6f 72 20 |..end xy|...itor |
|00004ac0| 66 6f 6e 74 20 73 69 7a | 65 20 74 6f 3a 22 20 77 |font siz|e to:" w|
|00004ad0| 69 74 68 20 22 39 22 20 | 2d 2d 20 c6 20 64 65 66 |ith "9" |-- . def|
|00004ae0| 61 75 6c 74 20 76 61 6c | 75 65 0d 69 66 20 74 68 |ault val|ue.if th|
|00004af0| 65 20 72 65 73 75 6c 74 | 20 69 73 20 22 43 61 6e |e result| is "Can|
|00004b00| 63 65 6c 22 20 6f 72 20 | 69 74 20 69 73 20 65 6d |cel" or |it is em|
|00004b10| 70 74 79 20 74 68 65 6e | 20 65 78 69 74 20 73 65 |pty then| exit se|
|00004b20| 0d 73 65 74 20 73 63 72 | 69 70 74 54 65 78 74 53 |.set scr|iptTextS|
|00004b30| 69 7a 65 20 74 6f 20 69 | 74 0d 65 6e 64 20 73 65 |ize to i|t.end se|
|00004b40| 0d 0d 6f 6e 20 78 79 0d | 2d 2d 20 c6 20 74 79 70 |..on xy.|-- . typ|
|00004b50| 65 20 22 78 79 22 20 69 | 6e 74 6f 20 6d 65 73 73 |e "xy" i|nto mess|
|00004b60| 61 67 65 20 62 6f 78 20 | 74 6f 20 6f 62 74 61 69 |age box |to obtai|
|00004b70| 6e 20 6d 6f 75 73 65 20 | 63 6f 6f 72 64 69 6e 61 |n mouse |coordina|
|00004b80| 74 65 73 0d 73 65 74 20 | 63 75 72 73 6f 72 20 74 |tes.set |cursor t|
|00004b90| 6f 20 63 72 6f 73 73 0d | 72 65 70 65 61 74 20 75 |o cross.|repeat u|
|00004ba0| 6e 74 69 6c 20 74 68 65 | 20 6d 6f 75 73 65 43 6c |ntil the| mouseCl|
|00004bb0| 69 63 6b 0d 70 75 74 20 | 74 68 65 20 6d 6f 75 73 |ick.put |the mous|
|00004bc0| 65 4c 6f 63 20 26 26 20 | 22 20 20 68 6f 72 7a 3a |eLoc && |" horz:|
|00004bd0| 22 20 26 20 74 68 65 20 | 6d 6f 75 73 65 48 20 26 |" & the |mouseH &|
|00004be0| 26 20 22 20 20 76 65 72 | 74 3a 22 20 26 20 74 68 |& " ver|t:" & th|
|00004bf0| 65 20 6d 6f 75 73 65 56 | 0d 65 6e 64 20 72 65 70 |e mouseV|.end rep|
|00004c00| 65 61 74 0d 65 6e 64 20 | 78 79 00 69 6f 6e 29 20 |eat.end |xy.ion) |
|00004c10| 69 6e 74 6f 20 70 6f 73 | 0d 63 6f 6c 6f 72 69 7a |into pos|.coloriz|
|00004c20| 65 48 43 20 22 61 64 64 | 22 2c 55 70 42 4d 61 70 |eHC "add|",UpBMap|
|00004c30| 2c 70 6f 73 0d 69 66 20 | 74 68 65 20 72 65 73 75 |,pos.if |the resu|
|00004c40| 6c 74 20 69 73 20 6e 6f | 74 20 65 6d 70 74 79 20 |lt is no|t empty |
|00004c50| 74 68 65 6e 0d 73 65 6e | 64 20 22 63 48 43 65 72 |then.sen|d "cHCer|
|00004c60| 72 6f 72 22 20 26 26 20 | 71 75 6f 74 65 20 26 20 |ror" && |quote & |
|00004c70| 74 68 65 20 72 65 73 75 | 6c 74 20 26 20 71 75 6f |the resu|lt & quo|
|00004c80| 74 65 20 74 6f 20 63 64 | 0d 65 6e 64 20 69 66 0d |te to cd|.end if.|
|00004c90| 63 48 43 73 68 6f 77 43 | 6f 6c 6f 72 20 54 72 75 |cHCshowC|olor Tru|
|00004ca0| 65 0d 65 6c 73 65 20 69 | 66 20 48 69 6c 69 74 65 |e.else i|f Hilite|
|00004cb0| 42 57 20 69 73 20 6e 6f | 74 20 66 61 6c 73 65 20 |BW is no|t false |
|00004cc0| 2d 2d 20 69 66 20 48 69 | 6c 69 74 65 42 57 20 69 |-- if Hi|liteBW i|
|00004cd0| 73 20 66 61 6c 73 65 2c | 20 6c 65 61 76 65 20 61 |s false,| leave a|
|00004ce0| 6c 6f 6e 65 21 0d 74 68 | 65 6e 20 73 65 74 20 74 |lone!.th|en set t|
|00004cf0| 68 65 20 68 69 6c 69 74 | 65 20 6f 66 20 74 68 65 |he hilit|e of the|
|00004d00| 20 74 61 72 67 65 74 20 | 74 6f 20 46 61 6c 73 65 | target |to False|
|00004d10| 0d 72 65 74 75 72 6e 20 | 54 72 75 65 0d 65 6e 64 |.return |True.end|
|00004d20| 20 69 66 0d 65 6e 64 20 | 63 48 43 6d 6f 75 73 65 | if.end |cHCmouse|
|00004d30| 55 70 0d 0d 66 75 6e 63 | 74 69 6f 6e 20 63 48 43 |Up..func|tion cHC|
|00004d40| 62 75 74 74 46 6c 61 67 | 73 20 66 6c 61 67 73 0d |buttFlag|s flags.|
|00004d50| 2d 2d 20 74 75 72 6e 20 | 72 65 61 64 61 62 6c 65 |-- turn |readable|
|00004d60| 20 65 71 75 69 76 20 6f | 66 20 63 48 43 69 6e 69 | equiv o|f cHCini|
|00004d70| 74 46 6c 61 67 73 20 69 | 6e 74 6f 20 63 6f 6d 70 |tFlags i|nto comp|
|00004d80| 72 65 73 73 65 64 20 66 | 6f 72 6d 0d 67 65 74 20 |ressed f|orm.get |
|00004d90| 6f 66 66 73 65 74 28 22 | 49 3d 22 2c 66 6c 61 67 |offset("|I=",flag|
|00004da0| 73 29 20 2d 2d 20 49 63 | 6f 6e 20 73 65 74 74 69 |s) -- Ic|on setti|
|00004db0| 6e 67 0d 69 66 20 69 74 | 20 3d 20 30 20 74 68 65 |ng.if it| = 0 the|
|00004dc0| 6e 20 70 75 74 20 22 20 | 22 20 69 6e 74 6f 20 72 |n put " |" into r|
|00004dd0| 65 73 75 6c 74 20 2d 2d | 20 63 68 61 72 20 31 0d |esult --| char 1.|
|00004de0| 65 6c 73 65 20 70 75 74 | 20 63 68 61 72 20 28 69 |else put| char (i|
|00004df0| 74 2b 32 29 20 6f 66 20 | 66 6c 61 67 73 20 69 6e |t+2) of |flags in|
|00004e00| 74 6f 20 72 65 73 75 6c | 74 0d 0d 67 65 74 20 6f |to resul|t..get o|
|00004e10| 66 66 73 65 74 28 22 4e | 3d 22 2c 66 6c 61 67 73 |ffset("N|=",flags|
|00004e20| 29 20 2d 2d 20 4e 61 6d | 65 20 73 65 74 74 69 6e |) -- Nam|e settin|
|00004e30| 67 0d 69 66 20 69 74 20 | 3d 20 30 20 74 68 65 6e |g.if it |= 0 then|
|00004e40| 20 70 75 74 20 22 20 22 | 20 61 66 74 65 72 20 72 | put " "| after r|
|00004e50| 65 73 75 6c 74 20 2d 2d | 20 63 68 61 72 20 32 0d |esult --| char 2.|
|00004e60| 65 6c 73 65 20 70 75 74 | 20 63 68 61 72 20 28 69 |else put| char (i|
|00004e70| 74 2b 32 29 20 6f 66 20 | 66 6c 61 67 73 20 61 66 |t+2) of |flags af|
|00004e80| 74 65 72 20 72 65 73 75 | 6c 74 0d 0d 67 65 74 20 |ter resu|lt..get |
|00004e90| 6f 66 66 73 65 74 28 22 | 4f 3d 22 2c 66 6c 61 67 |offset("|O=",flag|
|00004ea0| 73 29 20 2d 2d 20 4f 75 | 74 6c 69 6e 65 20 73 65 |s) -- Ou|tline se|
|00004eb0| 74 74 69 6e 67 0d 69 66 | 20 69 74 20 3d 20 30 20 |tting.if| it = 0 |
|00004ec0| 74 68 65 6e 20 70 75 74 | 20 22 20 22 20 61 66 74 |then put| " " aft|
|00004ed0| 65 72 20 72 65 73 75 6c | 74 20 2d 2d 20 63 68 61 |er resul|t -- cha|
|00004ee0| 72 20 33 0d 65 6c 73 65 | 20 70 75 74 20 63 68 61 |r 3.else| put cha|
|00004ef0| 72 20 28 69 74 2b 32 29 | 20 6f 66 20 66 6c 61 67 |r (it+2)| of flag|
|00004f00| 73 20 61 66 74 65 72 20 | 72 65 73 75 6c 74 0d 0d |s after |result..|
|00004f10| 72 65 74 75 72 6e 20 72 | 65 73 75 6c 74 0d 65 6e |return r|esult.en|
|00004f20| 64 20 63 48 43 62 75 74 | 74 46 6c 61 67 73 0d 0d |d cHCbut|tFlags..|
|00004f30| 6f 6e 20 63 48 43 69 6e | 69 74 42 75 74 74 6f 6e |on cHCin|itButton|
|00004f40| 20 73 68 6f 77 49 74 2c | 20 66 6c 61 67 73 2c 20 | showIt,| flags, |
|00004f50| 49 63 6e 2c 20 70 6f 73 | 2c 20 55 70 42 4d 61 70 |Icn, pos|, UpBMap|
|00004f60| 2c 20 43 6f 72 72 65 63 | 74 69 6f 6e 2c 20 6f 75 |, Correc|tion, ou|
|00004f70| 74 6c 69 6e 65 53 74 79 | 6c 65 0d 2d 2d 20 64 65 |tlineSty|le.-- de|
|00004f80| 66 61 75 6c 74 73 3a 20 | 73 68 6f 77 49 74 20 46 |faults: |showIt F|
|00004f90| 61 6c 73 65 2c 20 70 6f | 73 20 74 6f 70 4c 65 66 |alse, po|s topLef|
|00004fa0| 74 20 6f 66 20 74 61 72 | 67 65 74 2c 20 43 6f 72 |t of tar|get, Cor|
|00004fb0| 72 65 63 74 69 6f 6e 20 | 6e 6f 74 68 69 6e 67 2c |rection |nothing,|
|00004fc0| 0d 2d 2d 20 66 6c 61 67 | 73 3a 20 49 3d 4e 65 76 |.-- flag|s: I=Nev|
|00004fd0| 65 72 2c 4f 3d 4e 65 76 | 65 72 2c 4e 3d 4e 65 76 |er,O=Nev|er,N=Nev|
|00004fe0| 65 72 20 2c 20 6f 75 74 | 6c 69 6e 65 53 74 79 6c |er , out|lineStyl|
|00004ff0| 65 3a 20 72 65 63 74 61 | 6e 67 6c 65 2c 20 49 63 |e: recta|ngle, Ic|
|00005000| 6f 6e 3a 20 6e 6f 6e 65 | 0d 0d 69 66 20 73 68 6f |on: none|..if sho|
|00005010| 77 49 74 20 69 73 20 46 | 61 6c 73 65 20 74 68 65 |wIt is F|alse the|
|00005020| 6e 0d 68 69 64 65 20 74 | 68 65 20 74 61 72 67 65 |n.hide t|he targe|
|00005030| 74 0d 65 6c 73 65 20 69 | 66 20 73 68 6f 77 49 74 |t.else i|f showIt|
|00005040| 20 69 73 20 22 46 6f 72 | 63 65 22 20 74 68 65 6e | is "For|ce" then|
|00005050| 0d 63 48 43 66 6f 72 63 | 65 42 75 74 74 6f 6e 20 |.cHCforc|eButton |
|00005060| 66 6c 61 67 73 2c 49 63 | 6e 2c 70 6f 73 2c 55 70 |flags,Ic|n,pos,Up|
|00005070| 42 4d 61 70 2c 43 6f 72 | 72 65 63 74 69 6f 6e 2c |BMap,Cor|rection,|
|00005080| 6f 75 74 6c 69 6e 65 53 | 74 79 6c 65 0d 65 6c 73 |outlineS|tyle.els|
|00005090| 65 0d 67 6c 6f 62 61 6c | 20 67 4f 6b 54 6f 43 6f |e.global| gOkToCo|
|000050a0| 6c 6f 72 69 7a 65 0d 70 | 75 74 20 67 4f 6b 54 6f |lorize.p|ut gOkTo|
|000050b0| 43 6f 6c 6f 72 69 7a 65 | 20 69 73 20 6e 6f 74 20 |Colorize| is not |
|000050c0| 65 6d 70 74 79 20 6f 72 | 20 55 70 42 4d 61 70 20 |empty or| UpBMap |
|000050d0| 69 73 20 65 6d 70 74 79 | 20 69 6e 74 6f 20 42 57 |is empty| into BW|
|000050e0| 0d 0d 69 66 20 66 6c 61 | 67 73 20 63 6f 6e 74 61 |..if fla|gs conta|
|000050f0| 69 6e 73 20 22 3d 22 20 | 74 68 65 6e 20 70 75 74 |ins "=" |then put|
|00005100| 20 63 48 43 62 75 74 74 | 46 6c 61 67 73 28 66 6c | cHCbutt|Flags(fl|
|00005110| 61 67 73 29 20 69 6e 74 | 6f 20 66 6c 61 67 73 0d |ags) int|o flags.|
|00005120| 0d 2d 2d 20 69 6e 20 77 | 68 61 74 20 66 6f 6c 6c |.-- in w|hat foll|
|00005130| 6f 77 73 20 77 65 20 61 | 73 73 75 6d 65 20 74 68 |ows we a|ssume th|
|00005140| 61 74 20 63 48 43 69 6e | 69 74 42 75 74 74 6f 6e |at cHCin|itButton|
|00005150| 20 73 65 74 20 74 68 65 | 20 62 75 74 74 6f 6e 0d | set the| button.|
|00005160| 2d 2d 20 62 65 66 6f 72 | 65 2c 20 61 6e 64 20 74 |-- befor|e, and t|
|00005170| 68 75 73 20 6f 6e 6c 79 | 20 42 57 20 63 68 61 6e |hus only| BW chan|
|00005180| 67 65 73 20 2d 20 6f 6e | 6c 79 20 6e 65 65 64 20 |ges - on|ly need |
|00005190| 74 6f 20 61 64 64 72 65 | 73 73 20 42 27 73 0d 0d |to addre|ss B's..|
|000051a0| 69 66 20 42 57 20 74 68 | 65 6e 0d 69 66 20 63 68 |if BW th|en.if ch|
|000051b0| 61 72 20 33 20 6f 66 20 | 66 6c 61 67 73 20 69 73 |ar 3 of |flags is|
|000051c0| 20 22 42 22 20 74 68 65 | 6e 20 2d 2d 20 64 6f 4f | "B" the|n -- doO|
|000051d0| 75 74 6c 69 6e 65 0d 69 | 66 20 6f 75 74 6c 69 6e |utline.i|f outlin|
|000051e0| 65 53 74 79 6c 65 20 69 | 73 20 65 6d 70 74 79 20 |eStyle i|s empty |
|000051f0| 74 68 65 6e 0d 73 65 74 | 20 74 68 65 20 73 74 79 |then.set| the sty|
|00005200| 6c 65 20 6f 66 20 74 68 | 65 20 74 61 72 67 65 74 |le of th|e target|
|00005210| 20 74 6f 20 72 65 63 74 | 61 6e 67 6c 65 20 2d 2d | to rect|angle --|
|00005220| 20 64 65 66 61 75 6c 74 | 0d 65 6c 73 65 20 73 65 | default|.else se|
|00005230| 74 20 74 68 65 20 73 74 | 79 6c 65 20 6f 66 20 74 |t the st|yle of t|
|00005240| 68 65 20 74 61 72 67 65 | 74 20 74 6f 20 6f 75 74 |he targe|t to out|
|00005250| 6c 69 6e 65 53 74 79 6c | 65 0d 65 6e 64 20 69 66 |lineStyl|e.end if|
|00005260| 0d 0d 69 66 20 63 68 61 | 72 20 31 20 6f 66 20 66 |..if cha|r 1 of f|
|00005270| 6c 61 67 73 20 69 73 20 | 22 42 22 20 2d 2d 20 64 |lags is |"B" -- d|
|00005280| 6f 49 63 6f 6e 0d 74 68 | 65 6e 20 73 65 74 20 74 |oIcon.th|en set t|
|00005290| 68 65 20 69 63 6f 6e 20 | 6f 66 20 74 68 65 20 74 |he icon |of the t|
|000052a0| 61 72 67 65 74 20 74 6f | 20 49 63 6e 0d 0d 69 66 |arget to| Icn..if|
|000052b0| 20 63 68 61 72 20 32 20 | 6f 66 20 66 6c 61 67 73 | char 2 |of flags|
|000052c0| 20 69 73 20 22 42 22 20 | 2d 2d 20 64 6f 4e 61 6d | is "B" |-- doNam|
|000052d0| 65 0d 74 68 65 6e 20 73 | 65 74 20 74 68 65 20 73 |e.then s|et the s|
|000052e0| 68 6f 77 4e 61 6d 65 20 | 6f 66 20 74 68 65 20 74 |howName |of the t|
|000052f0| 61 72 67 65 74 20 74 6f | 20 54 72 75 65 0d 0d 73 |arget to| True..s|
|00005300| 65 74 20 74 68 65 20 61 | 75 74 6f 48 69 6c 69 74 |et the a|utoHilit|
|00005310| 65 20 6f 66 20 74 68 65 | 20 74 61 72 67 65 74 20 |e of the| target |
|00005320| 74 6f 20 54 72 75 65 0d | 0d 65 6c 73 65 20 2d 2d |to True.|.else --|
|00005330| 20 43 6f 6c 6f 75 72 0d | 69 66 20 63 68 61 72 20 | Colour.|if char |
|00005340| 33 20 6f 66 20 66 6c 61 | 67 73 20 69 73 20 22 42 |3 of fla|gs is "B|
|00005350| 22 20 2d 2d 20 64 6f 4f | 75 74 6c 69 6e 65 0d 74 |" -- doO|utline.t|
|00005360| 68 65 6e 20 73 65 74 20 | 74 68 65 20 73 74 79 6c |hen set |the styl|
|00005370| 65 20 6f 66 20 74 68 65 | 20 74 61 72 67 65 74 20 |e of the| target |
|00005380| 74 6f 20 6f 70 61 71 75 | 65 20 2d 2d 20 72 61 74 |to opaqu|e -- rat|
|00005390| 68 65 72 20 74 68 61 6e | 20 74 72 61 6e 73 70 61 |her than| transpa|
|000053a0| 72 65 6e 74 0d 0d 69 66 | 20 63 68 61 72 20 31 20 |rent..if| char 1 |
|000053b0| 6f 66 20 66 6c 61 67 73 | 20 69 73 20 22 42 22 20 |of flags| is "B" |
|000053c0| 2d 2d 20 64 6f 49 63 6f | 6e 0d 74 68 65 6e 20 73 |-- doIco|n.then s|
|000053d0| 65 74 20 74 68 65 20 69 | 63 6f 6e 20 6f 66 20 74 |et the i|con of t|
|000053e0| 68 65 20 74 61 72 67 65 | 74 20 74 6f 20 65 6d 70 |he targe|t to emp|
|000053f0| 74 79 0d 0d 69 66 20 63 | 68 61 72 20 32 20 6f 66 |ty..if c|har 2 of|
|00005400| 20 66 6c 61 67 73 20 69 | 73 20 22 42 22 20 2d 2d | flags i|s "B" --|
|00005410| 20 64 6f 4e 61 6d 65 0d | 74 68 65 6e 20 73 65 74 | doName.|then set|
|00005420| 20 74 68 65 20 73 68 6f | 77 4e 61 6d 65 20 6f 66 | the sho|wName of|
|00005430| 20 74 68 65 20 74 61 72 | 67 65 74 20 74 6f 20 46 | the tar|get to F|
|00005440| 61 6c 73 65 20 2d 2d 20 | 64 6f 4e 61 6d 65 0d 0d |alse -- |doName..|
|00005450| 73 65 74 20 74 68 65 20 | 61 75 74 6f 48 69 6c 69 |set the |autoHili|
|00005460| 74 65 20 6f 66 20 74 68 | 65 20 74 61 72 67 65 74 |te of th|e target|
|00005470| 20 74 6f 20 46 61 6c 73 | 65 0d 0d 2d 2d 20 70 61 | to Fals|e..-- pa|
|00005480| 63 65 20 74 68 65 20 50 | 49 43 54 0d 69 66 20 70 |ce the P|ICT.if p|
|00005490| 6f 73 20 69 73 20 65 6d | 70 74 79 20 74 68 65 6e |os is em|pty then|
|000054a0| 20 70 75 74 20 74 68 65 | 20 74 6f 70 4c 65 66 74 | put the| topLeft|
|000054b0| 20 6f 66 20 74 68 65 20 | 74 61 72 67 65 74 20 69 | of the |target i|
|000054c0| 6e 74 6f 20 70 6f 73 0d | 69 66 20 43 6f 72 72 65 |nto pos.|if Corre|
|000054d0| 63 74 69 6f 6e 20 69 73 | 20 6e 6f 74 20 65 6d 70 |ction is| not emp|
|000054e0| 74 79 0d 74 68 65 6e 20 | 70 75 74 20 63 48 43 63 |ty.then |put cHCc|
|000054f0| 6f 72 72 65 63 74 28 70 | 6f 73 2c 43 6f 72 72 65 |orrect(p|os,Corre|
|00005500| 63 74 69 6f 6e 29 20 69 | 6e 74 6f 20 70 6f 73 0d |ction) i|nto pos.|
|00005510| 63 6f 6c 6f 72 69 7a 65 | 48 43 20 22 61 64 64 22 |colorize|HC "add"|
|00005520| 2c 55 70 42 4d 61 70 2c | 70 6f 73 0d 69 66 20 74 |,UpBMap,|pos.if t|
|00005530| 68 65 20 72 65 73 75 6c | 74 20 69 73 20 6e 6f 74 |he resul|t is not|
|00005540| 20 65 6d 70 74 79 0d 74 | 68 65 6e 20 73 65 6e 64 | empty.t|hen send|
|00005550| 20 22 63 48 43 65 72 72 | 6f 72 22 20 26 26 20 71 | "cHCerr|or" && q|
|00005560| 75 6f 74 65 20 26 20 74 | 68 65 20 72 65 73 75 6c |uote & t|he resul|
|00005570| 74 20 26 20 71 75 6f 74 | 65 20 74 6f 20 63 64 0d |t & quot|e to cd.|
|00005580| 65 6e 64 20 69 66 0d 0d | 73 68 6f 77 20 74 68 65 |end if..|show the|
|00005590| 20 74 61 72 67 65 74 0d | 65 6e 64 20 69 66 0d 65 | target.|end if.e|
|000055a0| 6e 64 20 63 48 43 69 6e | 69 74 42 75 74 74 6f 6e |nd cHCin|itButton|
|000055b0| 0d 0d 6f 6e 20 63 48 43 | 66 6f 72 63 65 42 75 74 |..on cHC|forceBut|
|000055c0| 74 6f 6e 20 66 6c 61 67 | 73 2c 20 49 63 6e 2c 20 |ton flag|s, Icn, |
|000055d0| 70 6f 73 2c 20 55 70 42 | 4d 61 70 2c 20 43 6f 72 |pos, UpB|Map, Cor|
|000055e0| 72 65 63 74 69 6f 6e 2c | 20 6f 75 74 6c 69 6e 65 |rection,| outline|
|000055f0| 53 74 79 6c 65 0d 2d 2d | 20 64 6f 6e 27 74 20 61 |Style.--| don't a|
|00005600| 73 73 75 6d 65 20 77 65 | 20 61 72 65 20 69 6e 20 |ssume we| are in |
|00005610| 6b 6e 6f 77 6e 20 73 74 | 61 74 65 21 0d 0d 67 6c |known st|ate!..gl|
|00005620| 6f 62 61 6c 20 67 4f 6b | 54 6f 43 6f 6c 6f 72 69 |obal gOk|ToColori|
|00005630| 7a 65 0d 70 75 74 20 67 | 4f 6b 54 6f 43 6f 6c 6f |ze.put g|OkToColo|
|00005640| 72 69 7a 65 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |rize is |not empt|
|00005650| 79 20 6f 72 20 55 70 42 | 4d 61 70 20 69 73 20 65 |y or UpB|Map is e|
|00005660| 6d 70 74 79 20 69 6e 74 | 6f 20 42 57 0d 0d 69 66 |mpty int|o BW..if|
|00005670| 20 66 6c 61 67 73 20 63 | 6f 6e 74 61 69 6e 73 20 | flags c|ontains |
|00005680| 22 3d 22 20 74 68 65 6e | 20 70 75 74 20 63 48 43 |"=" then| put cHC|
|00005690| 62 75 74 74 46 6c 61 67 | 73 28 66 6c 61 67 73 29 |buttFlag|s(flags)|
|000056a0| 20 69 6e 74 6f 20 66 6c | 61 67 73 0d 0d 69 66 20 | into fl|ags..if |
|000056b0| 42 57 20 74 68 65 6e 0d | 67 65 74 20 63 68 61 72 |BW then.|get char|
|000056c0| 20 33 20 6f 66 20 66 6c | 61 67 73 20 2d 2d 20 64 | 3 of fl|ags -- d|
|000056d0| 6f 4f 75 74 6c 69 6e 65 | 0d 69 66 20 69 74 20 69 |oOutline|.if it i|
|000056e0| 73 20 22 42 22 20 6f 72 | 20 69 74 20 69 73 20 22 |s "B" or| it is "|
|000056f0| 41 22 20 74 68 65 6e 20 | 2d 2d 20 64 6f 4f 75 74 |A" then |-- doOut|
|00005700| 6c 69 6e 65 0d 69 66 20 | 6f 75 74 6c 69 6e 65 53 |line.if |outlineS|
|00005710| 74 79 6c 65 20 69 73 20 | 65 6d 70 74 79 20 74 68 |tyle is |empty th|
|00005720| 65 6e 0d 73 65 74 20 74 | 68 65 20 73 74 79 6c 65 |en.set t|he style|
|00005730| 20 6f 66 20 74 68 65 20 | 74 61 72 67 65 74 20 74 | of the |target t|
|00005740| 6f 20 72 65 63 74 61 6e | 67 6c 65 20 2d 2d 20 64 |o rectan|gle -- d|
|00005750| 65 66 61 75 6c 74 0d 65 | 6c 73 65 20 73 65 74 20 |efault.e|lse set |
|00005760| 74 68 65 20 73 74 79 6c | 65 20 6f 66 20 74 68 65 |the styl|e of the|
|00005770| 20 74 61 72 67 65 74 20 | 74 6f 20 6f 75 74 6c 69 | target |to outli|
|00005780| 6e 65 53 74 79 6c 65 0d | 65 6c 73 65 20 73 65 74 |neStyle.|else set|
|00005790| 20 74 68 65 20 73 74 79 | 6c 65 20 6f 66 20 74 68 | the sty|le of th|
|000057a0| 65 20 74 61 72 67 65 74 | 20 74 6f 20 6f 70 61 71 |e target| to opaq|
|000057b0| 75 65 20 2d 2d 20 72 61 | 74 68 65 72 20 74 68 61 |ue -- ra|ther tha|
|000057c0| 6e 20 74 72 61 6e 73 70 | 61 72 65 6e 74 0d 0d 67 |n transp|arent..g|
|000057d0| 65 74 20 63 68 61 72 20 | 31 20 6f 66 20 66 6c 61 |et char |1 of fla|
|000057e0| 67 73 20 2d 2d 20 64 6f | 49 63 6f 6e 0d 69 66 20 |gs -- do|Icon.if |
|000057f0| 69 74 20 69 73 20 22 42 | 22 20 6f 72 20 69 74 20 |it is "B|" or it |
|00005800| 69 73 20 22 41 22 20 74 | 68 65 6e 0d 73 65 74 20 |is "A" t|hen.set |
|00005810| 74 68 65 20 69 63 6f 6e | 20 6f 66 20 74 68 65 20 |the icon| of the |
|00005820| 74 61 72 67 65 74 20 74 | 6f 20 49 63 6e 0d 65 6c |target t|o Icn.el|
|00005830| 73 65 20 73 65 74 20 74 | 68 65 20 69 63 6f 6e 20 |se set t|he icon |
|00005840| 6f 66 20 74 68 65 20 74 | 61 72 67 65 74 20 74 6f |of the t|arget to|
|00005850| 20 65 6d 70 74 79 0d 0d | 67 65 74 20 63 68 61 72 | empty..|get char|
|00005860| 20 32 20 6f 66 20 66 6c | 61 67 73 20 2d 2d 20 64 | 2 of fl|ags -- d|
|00005870| 6f 4e 61 6d 65 0d 73 65 | 74 20 74 68 65 20 73 68 |oName.se|t the sh|
|00005880| 6f 77 4e 61 6d 65 20 6f | 66 20 74 68 65 20 74 61 |owName o|f the ta|
|00005890| 72 67 65 74 20 74 6f 20 | 69 74 20 69 73 20 22 42 |rget to |it is "B|
|000058a0| 22 20 6f 72 20 69 74 20 | 69 73 20 22 41 22 0d 73 |" or it |is "A".s|
|000058b0| 65 74 20 74 68 65 20 61 | 75 74 6f 48 69 6c 69 74 |et the a|utoHilit|
|000058c0| 65 20 6f 66 20 74 68 65 | 20 74 61 72 67 65 74 20 |e of the| target |
|000058d0| 74 6f 20 54 72 75 65 0d | 0d 65 6c 73 65 20 2d 2d |to True.|.else --|
|000058e0| 20 43 6f 6c 6f 75 72 0d | 69 66 20 63 68 61 72 20 | Colour.|if char |
|000058f0| 33 20 6f 66 20 66 6c 61 | 67 73 20 69 73 20 22 41 |3 of fla|gs is "A|
|00005900| 22 20 74 68 65 6e 20 2d | 2d 20 64 6f 4f 75 74 6c |" then -|- doOutl|
|00005910| 69 6e 65 0d 69 66 20 6f | 75 74 6c 69 6e 65 53 74 |ine.if o|utlineSt|
|00005920| 79 6c 65 20 69 73 20 65 | 6d 70 74 79 20 74 68 65 |yle is e|mpty the|
|00005930| 6e 0d 73 65 74 20 74 68 | 65 20 73 74 79 6c 65 20 |n.set th|e style |
|00005940| 6f 66 20 74 68 65 20 74 | 61 72 67 65 74 20 74 6f |of the t|arget to|
|00005950| 20 72 65 63 74 61 6e 67 | 6c 65 20 2d 2d 20 64 65 | rectang|le -- de|
|00005960| 66 61 75 6c 74 0d 65 6c | 73 65 20 73 65 74 20 74 |fault.el|se set t|
|00005970| 68 65 20 73 74 79 6c 65 | 20 6f 66 20 74 68 65 20 |he style| of the |
|00005980| 74 61 72 67 65 74 20 74 | 6f 20 6f 75 74 6c 69 6e |target t|o outlin|
|00005990| 65 53 74 79 6c 65 0d 65 | 6c 73 65 20 73 65 74 20 |eStyle.e|lse set |
|000059a0| 74 68 65 20 73 74 79 6c | 65 20 6f 66 20 74 68 65 |the styl|e of the|
|000059b0| 20 74 61 72 67 65 74 20 | 74 6f 20 6f 70 61 71 75 | target |to opaqu|
|000059c0| 65 20 2d 2d 20 72 61 74 | 68 65 72 20 74 68 61 6e |e -- rat|her than|
|000059d0| 20 74 72 61 6e 73 70 61 | 72 65 6e 74 0d 0d 69 66 | transpa|rent..if|
|000059e0| 20 63 68 61 72 20 31 20 | 6f 66 20 66 6c 61 67 73 | char 1 |of flags|
|000059f0| 20 69 73 20 22 41 22 20 | 74 68 65 6e 20 2d 2d 20 | is "A" |then -- |
|00005a00| 64 6f 49 63 6f 6e 0d 73 | 65 74 20 74 68 65 20 69 |doIcon.s|et the i|
|00005a10| 63 6f 6e 20 6f 66 20 74 | 68 65 20 74 61 72 67 65 |con of t|he targe|
|00005a20| 74 20 74 6f 20 49 63 6e | 0d 65 6c 73 65 20 73 65 |t to Icn|.else se|
|00005a30| 74 20 74 68 65 20 69 63 | 6f 6e 20 6f 66 20 74 68 |t the ic|on of th|
|00005a40| 65 20 74 61 72 67 65 74 | 20 74 6f 20 65 6d 70 74 |e target| to empt|
|00005a50| 79 0d 0d 73 65 74 20 74 | 68 65 20 73 68 6f 77 4e |y..set t|he showN|
|00005a60| 61 6d 65 20 6f 66 20 74 | 68 65 20 74 61 72 67 65 |ame of t|he targe|
|00005a70| 74 20 74 6f 20 63 68 61 | 72 20 32 20 6f 66 20 66 |t to cha|r 2 of f|
|00005a80| 6c 61 67 73 20 69 73 20 | 22 41 22 20 2d 2d 20 64 |lags is |"A" -- d|
|00005a90| 6f 4e 61 6d 65 0d 73 65 | 74 20 74 68 65 20 61 75 |oName.se|t the au|
|00005aa0| 74 6f 48 69 6c 69 74 65 | 20 6f 66 20 74 68 65 20 |toHilite| of the |
|00005ab0| 74 61 72 67 65 74 20 74 | 6f 20 46 61 6c 73 65 0d |target t|o False.|
|00005ac0| 0d 2d 2d 20 70 6c 61 63 | 65 0d 69 66 20 70 6f 73 |.-- plac|e.if pos|
|00005ad0| 20 69 73 20 65 6d 70 74 | 79 20 74 68 65 6e 20 70 | is empt|y then p|
|00005ae0| 75 74 20 74 68 65 20 74 | 6f 70 4c 65 66 74 20 6f |ut the t|opLeft o|
|00005af0| 66 20 74 68 65 20 74 61 | 72 67 65 74 20 69 6e 74 |f the ta|rget int|
|00005b00| 6f 20 70 6f 73 0d 69 66 | 20 43 6f 72 72 65 63 74 |o pos.if| Correct|
|00005b10| 69 6f 6e 20 69 73 20 6e | 6f 74 20 65 6d 70 74 79 |ion is n|ot empty|
|00005b20| 0d 74 68 65 6e 20 70 75 | 74 20 63 48 43 63 6f 72 |.then pu|t cHCcor|
|00005b30| 72 65 63 74 28 70 6f 73 | 2c 43 6f 72 72 65 63 74 |rect(pos|,Correct|
|00005b40| 69 6f 6e 29 20 69 6e 74 | 6f 20 70 6f 73 0d 63 6f |ion) int|o pos.co|
|00005b50| 6c 6f 72 69 7a 65 48 43 | 20 22 61 64 64 22 2c 55 |lorizeHC| "add",U|
|00005b60| 70 42 4d 61 70 2c 70 6f | 73 0d 69 66 20 74 68 65 |pBMap,po|s.if the|
|00005b70| 20 72 65 73 75 6c 74 20 | 69 73 20 6e 6f 74 20 65 | result |is not e|
|00005b80| 6d 70 74 79 0d 74 68 65 | 6e 20 73 65 6e 64 20 22 |mpty.the|n send "|
|00005b90| 63 48 43 65 72 72 6f 72 | 22 20 26 26 20 71 75 6f |cHCerror|" && quo|
|00005ba0| 74 65 20 26 20 74 68 65 | 20 72 65 73 75 6c 74 20 |te & the| result |
|00005bb0| 26 20 71 75 6f 74 65 20 | 74 6f 20 63 64 0d 65 6e |& quote |to cd.en|
|00005bc0| 64 20 69 66 0d 73 68 6f | 77 20 74 68 65 20 74 61 |d if.sho|w the ta|
|00005bd0| 72 67 65 74 0d 63 48 43 | 73 68 6f 77 43 6f 6c 6f |rget.cHC|showColo|
|00005be0| 72 20 54 72 75 65 0d 65 | 6e 64 20 63 48 43 66 6f |r True.e|nd cHCfo|
|00005bf0| 72 63 65 42 75 74 74 6f | 6e 0d 0d 6f 6e 20 63 48 |rceButto|n..on cH|
|00005c00| 43 65 72 72 6f 72 20 6d | 65 73 73 0d 67 6c 6f 62 |Cerror m|ess.glob|
|00005c10| 61 6c 20 67 48 43 6f 70 | 74 69 6f 6e 73 0d 69 66 |al gHCop|tions.if|
|00005c20| 20 63 68 61 72 20 37 20 | 6f 66 20 67 48 43 6f 70 | char 7 |of gHCop|
|00005c30| 74 69 6f 6e 73 20 69 73 | 20 31 20 74 68 65 6e 20 |tions is| 1 then |
|00005c40| 65 78 69 74 20 63 48 43 | 65 72 72 6f 72 0d 69 66 |exit cHC|error.if|
|00005c50| 20 6d 65 73 73 20 69 73 | 20 6e 6f 74 20 65 6d 70 | mess is| not emp|
|00005c60| 74 79 20 74 68 65 6e 20 | 61 6e 73 77 65 72 20 6d |ty then |answer m|
|00005c70| 65 73 73 0d 65 6e 64 20 | 63 48 43 65 72 72 6f 72 |ess.end |cHCerror|
|00005c80| 0d 00 6f 72 20 54 72 75 | 65 0d 65 6e 64 20 63 48 |..or Tru|e.end cH|
|00005c90| 43 66 6f 72 63 65 42 75 | 74 74 6f 6e 0d 0d 6f 6e |CforceBu|tton..on|
|00005ca0| 20 63 48 43 65 72 72 6f | 72 20 6d 65 73 73 0d 67 | cHCerro|r mess.g|
|00005cb0| 6c 6f 62 61 6c 20 67 48 | 43 6f 70 74 69 6f 6e 73 |lobal gH|Coptions|
|00005cc0| 0d 69 66 20 63 68 61 72 | 20 37 20 6f 66 20 67 48 |.if char| 7 of gH|
|00005cd0| 43 6f 70 74 69 6f 6e 73 | 20 69 73 20 31 20 74 68 |Coptions| is 1 th|
|00005ce0| 65 6e 20 65 78 69 74 20 | 63 48 43 65 72 72 6f 72 |en exit |cHCerror|
|00005cf0| 0d 69 66 20 6d 65 73 73 | 20 69 73 20 6e 6f 74 20 |.if mess| is not |
|00005d00| 65 6d 70 74 79 20 74 68 | 65 6e 20 61 6e 73 77 65 |empty th|en answe|
|00005d10| 72 20 6d 65 73 73 0d 65 | 6e 64 20 63 48 43 65 72 |r mess.e|nd cHCer|
|00005d20| 72 6f 72 0d 00 20 65 6d | 70 74 79 20 74 68 65 6e |ror.. em|pty then|
|00005d30| 20 61 6e 73 77 65 72 20 | 6d 65 73 73 0d 65 6e 64 | answer |mess.end|
|00005d40| 20 63 48 43 65 72 72 6f | 72 0d 00 54 72 75 65 2c | cHCerro|r..True,|
|00005d50| 20 22 48 43 63 6f 6c 6f | 72 69 7a 65 2c 48 43 75 | "HCcolo|rize,HCu|
|00005d60| 6e 43 6f 6c 6f 72 69 7a | 65 2c 48 43 62 57 68 69 |nColoriz|e,HCbWhi|
|00005d70| 74 65 2c 57 69 6e 64 6f | 77 73 22 0d 65 6e 64 20 |te,Windo|ws".end |
|00005d80| 6f 70 65 6e 53 74 61 63 | 6b 0d 0d 6f 6e 20 63 6c |openStac|k..on cl|
|00005d90| 6f 73 65 53 74 61 63 6b | 0d 63 48 43 63 6c 6f 73 |oseStack|.cHCclos|
|00005da0| 65 0d 65 6e 64 20 63 6c | 6f 73 65 53 74 61 63 6b |e.end cl|oseStack|
|00005db0| 0d 0d 6f 6e 20 72 65 73 | 75 6d 65 53 74 61 63 6b |..on res|umeStack|
|00005dc0| 0d 63 48 43 72 65 73 74 | 61 72 74 20 2c 22 48 43 |.cHCrest|art ,"HC|
|00005dd0| 63 6f 6c 6f 72 69 7a 65 | 2c 48 43 75 6e 43 6f 6c |colorize|,HCunCol|
|00005de0| 6f 72 69 7a 65 2c 48 43 | 62 57 68 69 74 65 2c 57 |orize,HC|bWhite,W|
|00005df0| 69 6e 64 6f 77 73 22 0d | 65 6e 64 20 72 65 73 75 |indows".|end resu|
|00005e00| 6d 65 53 74 61 63 6b 0d | 0d 6f 6e 20 73 75 73 70 |meStack.|.on susp|
|00005e10| 65 6e 64 53 74 61 63 6b | 0d 63 48 43 6c 65 61 76 |endStack|.cHCleav|
|00005e20| 65 0d 65 6e 64 20 73 75 | 73 70 65 6e 64 53 74 61 |e.end su|spendSta|
|00005e30| 63 6b 00 20 43 6f 72 72 | 65 63 74 69 6f 6e 20 69 |ck. Corr|ection i|
|00005e40| 73 20 6e 6f 74 20 65 6d | 70 74 79 0d 74 68 65 6e |s not em|pty.then|
|00005e50| 20 70 75 74 20 63 48 43 | 63 6f 72 72 65 63 74 28 | put cHC|correct(|
|00005e60| 70 6f 73 2c 43 6f 72 72 | 65 63 74 69 6f 6e 29 20 |pos,Corr|ection) |
|00005e70| 69 6e 74 6f 20 70 6f 73 | 0d 63 6f 6c 6f 72 69 7a |into pos|.coloriz|
|00005e80| 65 48 43 20 22 61 64 64 | 22 2c 55 70 42 4d 61 70 |eHC "add|",UpBMap|
|00005e90| 2c 70 6f 73 0d 69 66 20 | 74 68 65 20 72 65 73 75 |,pos.if |the resu|
|00005ea0| 6c 74 20 69 73 20 6e 6f | 74 20 65 6d 70 74 79 0d |lt is no|t empty.|
|00005eb0| 74 68 65 6e 20 73 65 6e | 64 20 22 63 48 43 65 72 |then sen|d "cHCer|
|00005ec0| 72 6f 72 22 20 26 26 20 | 71 75 6f 74 65 20 26 20 |ror" && |quote & |
|00005ed0| 74 68 65 20 72 65 73 75 | 6c 74 20 26 20 71 75 6f |the resu|lt & quo|
|00005ee0| 74 65 20 74 6f 20 63 64 | 0d 65 6e 64 20 69 66 0d |te to cd|.end if.|
|00005ef0| 73 68 6f 77 20 74 68 65 | 20 74 61 72 67 65 74 0d |show the| target.|
|00005f00| 63 48 43 73 68 6f 77 43 | 6f 6c 6f 72 20 54 72 75 |cHCshowC|olor Tru|
|00005f10| 65 0d 65 6e 64 20 63 48 | 43 66 6f 72 63 65 42 75 |e.end cH|CforceBu|
|00005f20| 74 74 6f 6e 0d 0d 2d 2d | 20 73 63 72 69 70 74 69 |tton..--| scripti|
|00005f30| 6e 67 20 61 69 64 73 20 | 2d 20 72 65 61 6c 6c 79 |ng aids |- really|
|00005f40| 20 69 6e 20 22 43 6f 6c | 6f 72 69 7a 69 6e 67 20 | in "Col|orizing |
|00005f50| 48 43 20 41 69 64 73 22 | 0d 0d 6f 6e 20 63 48 43 |HC Aids"|..on cHC|
|00005f60| 62 6c 61 63 6b 53 63 72 | 65 65 6e 0d 73 65 6e 64 |blackScr|een.send|
|00005f70| 20 74 68 65 20 70 61 72 | 61 6d 73 20 74 6f 20 73 | the par|ams to s|
|00005f80| 74 61 63 6b 20 22 43 6f | 6c 6f 72 69 7a 69 6e 67 |tack "Co|lorizing|
|00005f90| 20 48 43 20 41 69 64 73 | 22 0d 65 6e 64 20 63 48 | HC Aids|".end cH|
|00005fa0| 43 62 6c 61 63 6b 53 63 | 72 65 65 6e 0d 0d 6f 6e |CblackSc|reen..on|
|00005fb0| 20 63 48 43 73 73 0d 73 | 65 6e 64 20 74 68 65 20 | cHCss.s|end the |
|00005fc0| 70 61 72 61 6d 73 20 74 | 6f 20 73 74 61 63 6b 20 |params t|o stack |
|00005fd0| 22 43 6f 6c 6f 72 69 7a | 69 6e 67 20 48 43 20 41 |"Coloriz|ing HC A|
|00005fe0| 69 64 73 22 0d 65 6e 64 | 20 63 48 43 73 73 0d 0d |ids".end| cHCss..|
|00005ff0| 6f 6e 20 63 48 43 72 65 | 64 72 61 77 0d 73 65 6e |on cHCre|draw.sen|
|00006000| 64 20 74 68 65 20 70 61 | 72 61 6d 73 20 74 6f 20 |d the pa|rams to |
|00006010| 73 74 61 63 6b 20 22 43 | 6f 6c 6f 72 69 7a 69 6e |stack "C|olorizin|
|00006020| 67 20 48 43 20 41 69 64 | 73 22 0d 65 6e 64 20 63 |g HC Aid|s".end c|
|00006030| 48 43 72 65 64 72 61 77 | 0d 0d 2d 2d 20 6d 69 73 |HCredraw|..-- mis|
|00006040| 63 3a 0d 0d 6f 6e 20 63 | 48 43 65 72 72 6f 72 20 |c:..on c|HCerror |
|00006050| 6d 65 73 73 0d 67 6c 6f | 62 61 6c 20 67 48 43 6f |mess.glo|bal gHCo|
|00006060| 70 74 69 6f 6e 73 0d 69 | 66 20 63 68 61 72 20 37 |ptions.i|f char 7|
|00006070| 20 6f 66 20 67 48 43 6f | 70 74 69 6f 6e 73 20 69 | of gHCo|ptions i|
|00006080| 73 20 31 20 74 68 65 6e | 20 65 78 69 74 20 63 48 |s 1 then| exit cH|
|00006090| 43 65 72 72 6f 72 0d 69 | 66 20 6d 65 73 73 20 69 |Cerror.i|f mess i|
|000060a0| 73 20 6e 6f 74 20 65 6d | 70 74 79 20 74 68 65 6e |s not em|pty then|
|000060b0| 20 61 6e 73 77 65 72 20 | 6d 65 73 73 0d 65 6e 64 | answer |mess.end|
|000060c0| 20 63 48 43 65 72 72 6f | 72 0d 0d 2d 2d 20 74 68 | cHCerro|r..-- th|
|000060d0| 65 20 76 65 72 73 69 6f | 6e 20 6f 66 20 54 48 49 |e versio|n of THI|
|000060e0| 53 20 73 74 61 63 6b 0d | 0d 66 75 6e 63 74 69 6f |S stack.|.functio|
|000060f0| 6e 20 63 48 43 76 65 72 | 73 69 6f 6e 20 6c 6e 67 |n cHCver|sion lng|
|00006100| 0d 69 66 20 6c 6e 67 20 | 69 73 20 22 6c 6f 6e 67 |.if lng |is "long|
|00006110| 22 20 74 68 65 6e 20 72 | 65 74 75 72 6e 20 22 31 |" then r|eturn "1|
|00006120| 2e 31 2e 32 22 0d 72 65 | 74 75 72 6e 20 22 31 2e |.1.2".re|turn "1.|
|00006130| 31 32 22 0d 65 6e 64 20 | 63 48 43 76 65 72 73 69 |12".end |cHCversi|
|00006140| 6f 6e 0d 0d 7a 69 6e 67 | 20 48 43 20 41 69 64 73 |on..zing| HC Aids|
|00006150| 22 0d 73 65 6e 64 20 74 | 68 65 20 70 61 72 61 6d |".send t|he param|
|00006160| 73 20 74 6f 20 73 74 61 | 63 6b 20 22 43 6f 6c 6f |s to sta|ck "Colo|
|00006170| 72 69 7a 69 6e 67 20 48 | 43 20 41 69 64 73 22 0d |rizing H|C Aids".|
|00006180| 65 6e 64 20 63 48 43 72 | 65 64 72 61 77 0d 0d 2d |end cHCr|edraw..-|
|00006190| 2d 20 6d 69 73 63 3a 0d | 0d 6f 6e 20 63 48 43 65 |- misc:.|.on cHCe|
|000061a0| 72 72 6f 72 20 6d 65 73 | 73 0d 67 6c 6f 62 61 6c |rror mes|s.global|
|000061b0| 20 67 48 43 6f 70 74 69 | 6f 6e 73 0d 69 66 20 63 | gHCopti|ons.if c|
|000061c0| 68 61 72 20 37 20 6f 66 | 20 67 48 43 6f 70 74 69 |har 7 of| gHCopti|
|000061d0| 6f 6e 73 20 69 73 20 31 | 20 74 68 65 6e 20 65 78 |ons is 1| then ex|
|000061e0| 69 74 20 63 48 43 65 72 | 72 6f 72 0d 69 66 20 6d |it cHCer|ror.if m|
|000061f0| 65 73 73 20 69 73 20 6e | 6f 74 20 65 6d 70 74 79 |ess is n|ot empty|
|00006200| 20 74 68 65 6e 20 61 6e | 73 77 65 72 20 6d 65 73 | then an|swer mes|
|00006210| 73 0d 65 6e 64 20 63 48 | 43 65 72 72 6f 72 0d 0d |s.end cH|Cerror..|
|00006220| 2d 2d 20 74 68 65 20 76 | 65 72 73 69 6f 6e 20 6f |-- the v|ersion o|
|00006230| 66 20 54 48 49 53 20 73 | 74 61 63 6b 0d 0d 66 75 |f THIS s|tack..fu|
|00006240| 6e 63 74 69 6f 6e 20 63 | 48 43 76 65 72 73 69 6f |nction c|HCversio|
|00006250| 6e 20 6c 6e 67 0d 69 66 | 20 6c 6e 67 20 69 73 20 |n lng.if| lng is |
|00006260| 22 6c 6f 6e 67 22 20 74 | 68 65 6e 20 72 65 74 75 |"long" t|hen retu|
|00006270| 72 6e 20 22 31 2e 31 2e | 32 22 0d 72 65 74 75 72 |rn "1.1.|2".retur|
|00006280| 6e 20 22 31 2e 31 32 22 | 0d 65 6e 64 20 63 48 43 |n "1.12"|.end cHC|
|00006290| 76 65 72 73 69 6f 6e 0d | 0d 0d 2e 31 31 22 0d 65 |version.|...11".e|
|000062a0| 6e 64 20 63 48 43 76 65 | 72 73 69 6f 6e 0d 0d 0d |nd cHCve|rsion...|
|000062b0| 0d 48 43 62 6c 61 63 6b | 53 63 72 65 65 6e 0d 0d |.HCblack|Screen..|
|000062c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.